Skip to content

Instantly share code, notes, and snippets.

@euske
Created July 7, 2021 02:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save euske/45612a927c5ac17d6a032d531bc23a6e to your computer and use it in GitHub Desktop.
Save euske/45612a927c5ac17d6a032d531bc23a6e to your computer and use it in GitHub Desktop.
Boilerplate bash script
#!/bin/sh
exec >& doit.log
echo "*** BEGIN `date +'%Y-%m-%d %H:%M:%S'` ***"
renice +10 $$
# ...DO SOME LENGHTY STUFF...
# cd data || exit 1
# for i in *.txt; do
# echo "*** $i ***"
# foo "$i"
# echo "exit $?"
# done
echo "*** END `date +'%Y-%m-%d %H:%M:%S'` ***"
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment