* Do yourself a favour and alias a 'del' command instead of 'rm'. At least del should alias to rm -i. I use 'alias del gvfs-trash' which is like Windows' Recycle Bin.
It's interesting, this link has been posted to HN three other times and received only 1 point each time.
Comments
Some updates to the text:
* tail +2 XXXX needs to be tail -n +2 XXXX.
* The $$'s in the shell script are problematic. (http://stackoverflow.com/questions/78493/what-does-mean-in-t...)
* Do yourself a favour and alias a 'del' command instead of 'rm'. At least del should alias to rm -i. I use 'alias del gvfs-trash' which is like Windows' Recycle Bin.
It's interesting, this link has been posted to HN three other times and received only 1 point each time.