Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

scan tru multiple files for multiple bits of data

scan tru multiple files for multiple bits of data

scan tru multiple files for multiple bits of data

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`
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"

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

This isn't doing it...

any idea's?


Joe Despres

RE: scan tru multiple files for multiple bits of data

Would like to grep tru multiple files with items to grep as well...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close