From Mexico.purplecow.org
(Difference between revisions)
(creation) |
Current revision (15:54, 10 May 2009) (view source) m (add category) |
||
Line 9: | Line 9: | ||
done <content.txt | done <content.txt | ||
</pre> | </pre> | ||
+ | |||
+ | [[Category: Tech]] |
Current revision
A recurring question that pops up - how to process text files line-by-line in shell.
#!/bin/bash while read moo do echo $moo done <content.txt