1 2 3 4 5 6 7
#! /usr/bin/bash if [ -f "$1" ] then published_name=`date -I'date'`-`basename $1` echo "Publishing as $published_name" mv "$1" "blog/_i18n/nb/_posts/$published_name" fi