Thanks for this article David. It helped refresh my memory on my bash loops. By the way my favourite for loop is looping over files in the current directory...
$ for f in *; do echo "$f"; done
Just need to remember the quotes around the variable in case there are spaces in the filenames.
Authored Comments
Thanks for this article David. It helped refresh my memory on my bash loops. By the way my favourite for loop is looping over files in the current directory...
$ for f in *; do echo "$f"; done
Just need to remember the quotes around the variable in case there are spaces in the filenames.