Knowledge Base - FAQ

Question: How can I loop through lines in a text file in bash?

for i in $(cat example.txt); do echo $i; done


Last Modified: Nov 23, 2010


Kattare is Trustwave Certified and Safe Harbor Certified | Rated Safe For Kids by ICRA | All Rights Reserved Worldwide
Copyright © 1997 - 2012 Kättare Internet Services | Processed in 0.014 seconds by pyramid-06 in Corvallis, Oregon