Created
September 9, 2011 21:56
-
-
Save erynofwales/1207439 to your computer and use it in GitHub Desktop.
Pipe output of a command, newline separated, through a loop. This only works on KSH derivatives, including ZSH.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
command | while read x; do [some stuff on $x]; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment