diary (422B)
1 #!/bin/sh 2 3 date=$(date +%d%m%y) 4 wdate=$(date +%d/%m/%y) 5 echo "===private===" > ~/.local/privated 6 echo "#Daily Entry - $wdate" > ~/.local/public.gph 7 8 phlog="$HOME/net/alcl/write" 9 mkdir -p $phlog/daily.entries ~/.local/diary 10 vim -O ~/.local/public.gph ~/.local/privated 11 printf '.txt or .gph?'; read ftype < /dev/tty 12 mv ~/.local/public.gph $phlog/daily.entries/entry.of.$date.$ftype 13 mv ~/.local/privated ~/.local/diary/$date