I want to iterate over a list of files. This list is the result of a find command, so I came up with:
find
getlist() { for f in $(find . -iname \"f
You could replace the word-based iteration with a line-based one:
find . -iname "foo*" | while read f do # ... loop body done