![]() |
|
|
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 |
| Search a list of lines in file into files | sriram003 | UNIX for Advanced & Expert Users | 2 | 05-20-2008 08:23 AM |
| search for lines in a file | shalua | Shell Programming and Scripting | 9 | 04-23-2008 12:28 AM |
| Can I search columns and print lines? | Ant1815 | UNIX for Dummies Questions & Answers | 2 | 04-26-2007 08:01 AM |
| How can you show lines surrounding a search string? | robster | UNIX for Dummies Questions & Answers | 3 | 06-07-2005 12:33 PM |
| Looking for a good way to search & destroy lines | darthur | UNIX for Dummies Questions & Answers | 5 | 07-30-2002 01:14 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
View all lines in grep search
I am trying to grep a file and I need to show the schedules that the grep belongs too.
here is the command I am using and the result I am getting: $ fgrep -e 'SCALHOL' twsschedules EXCEPT SCALHOL -1 DAYS EXCEPT SCALHOL -1 DAYS EXCEPT SCALHOL -1 DAYS EXCEPT SCALHOL -1 DAYS EXCEPT SCALHOL -1 DAYS EXCEPT SCALHOL -1 DAYS What I need is to see the related schedules that the SCALHOL reside: CPU id. Schedule Creator Last Updated ---------------- ---------------- -------------------------- ------------ HCSCPRODMLM SC_ML_TAP_DLY twsmast 11/17/07 SCHEDULE HCSCPRODMLM#SC_ML_TAP_DLY ON EVERYDAY EXCEPT SCALHOL -1 DAYS CARRYFORWARD PRIORITY 10 : HCSCPRODOCM#SC_OC_RPB_1588 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|