Last active
December 15, 2015 21:58
-
-
Save zsxwing/5329167 to your computer and use it in GitHub Desktop.
How to iterate lines in a file or generated by a command correctly.
This file contains hidden or 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
while read line; do | |
echo $line; | |
done < <(cat test.txt) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment