shell foreach xargs code example Example: shell foreach line cat file | while read -r a; do echo $a; done