Created
July 7, 2021 02:54
-
-
Save euske/45612a927c5ac17d6a032d531bc23a6e to your computer and use it in GitHub Desktop.
Boilerplate bash script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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