Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scan tru multiple files for multiple bits of data

Status
Not open for further replies.

jdespres

MIS
Aug 4, 1999
230
US
I need to scan through 28 files ::--->

/bin/ls -alt $SDIR/*$IDENTIFIER*log|awk '{print $9}'|grep Celerra.avtar.log | tee $ALL > $FILESLOG

And I want to pull out multiple items from each file ::--->

for i in `cat $FILESLOG`
do
echo -e "/bin/grep "<5905>" $SDIR/$i | awk '{print $1, $11}' \c"
echo -e "/bin/grep -i " <6083>: " $SDIR/$i \c"
echo -e "/bin/grep -i "<5156>" $SDIR/$i | grep -v snapview \c"
echo -e "/bin/grep "<9611>" $SDIR/$i|awk '{print $1, $2, $11}' \c"
echo -e "/bin/grep "<11820>" $SDIR/$i|awk '{print $1, $2, $9}' \c"
done

While keeping each passes of data on one line...

This isn't doing it...

any idea's?

Thanks...

Joe Despres
 
This isn't doing it...
This is not doing WHAT ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Would like to grep tru multiple files with items to grep as well...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top