#!//usr/pkg/bin/bash #DATE=`date +%d.%m.%Y` DATE=$(IFS='.'; for x in `date +"%d.%m.%Y"`; do ~/bin/to_roman.py $x; done | tr '\n' '.' | sed 's/.$//') #INNER_DATE=`date "+%A %d.%m.%Y"` FILE="${HOME}/gopher/en/diary/${DATE}" if [ ! -f "${FILE}" ]; then printf "idiot's diary, terrestrial date: $(date +%A) ${DATE}:\n==================================" >> $FILE fi nano $FILE