Created
October 10, 2013 09:57
-
-
Save ftclausen/6915911 to your computer and use it in GitHub Desktop.
While loop avoiding useless use of cat
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
exec 6<somelist.txt | |
while read -u 6 -r item; do | |
echo "Doing something with $item | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment