![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help: for display the 1 column from one file? | surainbow | Shell Programming and Scripting | 5 | 07-22-2008 02:30 AM |
| how to grep for a word and display only the word | ananthmm | UNIX for Dummies Questions & Answers | 6 | 05-29-2008 05:00 AM |
| print a line containing word in a column using grep | useless79 | Shell Programming and Scripting | 2 | 11-23-2007 12:32 AM |
| to display the word containing all of aeiou in a file. | arunsubbhian | UNIX for Dummies Questions & Answers | 1 | 09-09-2007 12:57 PM |
| display column in a row | vivekshankar | UNIX for Dummies Questions & Answers | 2 | 05-23-2005 01:43 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
I need idea about this, say I have this line: 05 21 * * 0,6 /user/clean.desktop.sh > /tmp/desktop_rpt 2>&1 I would need to grep the word desktop and display the /user/clean.desktop.sh and not the whole line. And if I have some more lines say, 05 21 * * 0,6 /user/clean.desktop.sh > /tmp/desktop_rpt 2>&1 05 21 * * 0,6 /user/clean.laptop.sh || /user/view.desktop.sh > /tmp/view_rpt 2>&1 05 21 * * 0,6 /user/a.sh || /user/desktop.sh > /tmp/view_rpt 2>&1 It will display: /user/clean.desktop.sh /user/view.desktop.sh /user/desktop.sh Field separator is the white space. Any idea how? |
| Forum Sponsor | ||
|
|