![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| grep from file | jaydeep_sadaria | Shell Programming and Scripting | 2 | 04-10-2008 01:03 PM |
| grep file | ali560045 | Shell Programming and Scripting | 0 | 01-10-2008 07:51 AM |
| How to grep a number in a file to find them in another file | ahjiefreak | Shell Programming and Scripting | 7 | 12-12-2007 06:01 AM |
| how to search -n in a file with grep | lamilami | Shell Programming and Scripting | 2 | 11-28-2007 04:42 PM |
| grep for a tar File | steiner | UNIX for Advanced & Expert Users | 1 | 07-19-2004 12:40 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Grep Log file
Okay, I got a log file, and I need to use a combo of the tail -f command and the grep command, but I don't want to see all the output, other than what I'm "grepping". As well I'd like it to stop tailing and searching and just return to the command line, once it finds 1 line with that string in it. Something like this:
./scriptThatGeneratesLogFile.sh; tail -f | grep RUN logfile.out Edit: It doesn't have to be the grep command, or even the tail command. Those are just the two I'm somewhat familiar with and use the most. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|