3 ms·
> Use for to iterate over simple lists I definitely use this all the time. Also, generating the list of things over which to iterate using the output of a comm
by usefulcat 5y ago
> Use for to iterate over simple lists
I definitely use this all the time. Also, generating the list of things over which to iterate using the output of a command:
for thing in $(cat file_with_one_thing_per_line) ; do ...
- phone8675309 5y agoWhy not? xargs -n1 command < file_with_one_thing_per_line
- make3 5y agothat's like bash 101, not sure why it's in there