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
In some cases, here if you just need to copy or move a list of files, you could pipe that list to awk as well. Important the \"" "\" around the field $0 (in short your files, one line-list = one file).
\"" "\"
$0
find . -iname "foo*" | awk '{print "mv \""$0"\" ./MyDir2" | "sh" }'