This snippet is more than 5 years old and may no longer be best practise, test before use.

Foreach loop with Bash


Loops around a directory and echos each folder.

 

Code: