Generate scripts  (using -t option)

TASK:  Cleanup and archive  $HOME/mail/*
a) save existing mbox's to $HOME/mail/Old/
b) truncate most existing mbox files (but not all)

1) redirect commands to cleanup.sh
$ wc2fn -tv 'cp -p $1 $2 ; false > $1' '*' 'Old/*.20061230' > cleanup.sh
$ head -5 cleanup.sh
* ignoring directory Old
- processing 117 files
cp -p 'out' 'Old/out.20061230' ; false > 'out'
cp -p 'mailman' 'Old/mailman.20061230' ; false > 'mailman'
cp -p 'ccc-list' 'Old/ccc-list.20061230' ; false > 'ccc-list'

2) edit cleanup.sh (remove/modify lines)
3) chmod +x cleanup.sh ; ./cleanup.sh


Generate web page   (totally useless, but fun!)
$ wc2fn 'echo "<br><a href=$1>$2</a>"' 'IMGP????.JPG' 'Baja 2005/6 img:????|' > goofyWebpage.html
$ head -2 goofyWebpage.html
<br><a href='IMGP2098.JPG'>'Baja 2005/6 img:2098'</a>
<br><a href='IMGP2128.JPG'>'Baja 2005/6 img:2128'</a>

Same, displayed as URL, but sorry, w/o the images to point to )-:

'Baja 2005/6 img:2098'
'Baja 2005/6 img:2128'

Prev -- Home            1 2 3 4 5 6 7 8 9 10