Notifications – during and after launching

When I launch a long-running process I like to forget about it, but how do I know when it’s finished? You can of course have it send an email after it finishes: long_process; echo “finished” |mail -s “finished” For this to work, it’s very useful to have ssmtp configured, so you have a sane, […]

find’s printf action

If you use find, it outputs full paths, which may not always be desirable. Turns out find has a -printf action with which you can do  niceties such as outputting plain filenames (as if you’d used basename on them, but this means one less command on your pipeline): find data/{audio,documents,images,video,websites}/ -type f -printf “%f\n” The […]