Bash For Loops
Looping in a Bash Script
I run into a a bunch of situation where I have to loop over outputs from cli outputs in Bash scripts. I can never remember where to find this information, so I’ll document it here.
This is just an example of what I typically need to do:
Using read in a for loop Get a long running command output, for this example, I’ll just use the output from a find command: