Tony Terlecki wrote:
Is there a shell command to read files? I want to open a text file, loop through each line and parse the line of text.Depending on what you want to do: man sed man awk
Yeah, but he asked about shell commands which read files, and that is 'cat'
so my addon to your answer is : see also 'man cat'
In bash script you might use something like
for i in $(cat yourfile);
do
do_something_with $i
done
--
Mladen Adamovic
http://www.online-utility.org http://www.cheapvps.info
http://www.vpsreview.com http://www.vpsdeal.com