The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Help to process each line in a file...
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Rules & FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
Help to process each line in a file...
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
05-14-2008
penchal_boddu
Registered User
Join Date: Apr 2008
Location: Bangalore
Posts: 120
using for loop
for i in `cat filenames.txt`
do
..
grep .......... $i
..
done
Using while loop
while read line
do
..
grep ....... $line
..
done < filenames.txt
Thanks
Penchal
penchal_boddu
View Public Profile
Find all posts by penchal_boddu