![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| grep N lines after match and then print them on 1 line each | alekkz | UNIX for Dummies Questions & Answers | 10 | 09-28-2009 01:33 PM |
| match a pattern and print the line once | bhagirathi | Shell Programming and Scripting | 11 | 07-13-2009 11:02 AM |
| Awk+Grep Input file needs to match a column and print the entire line | poliver | Shell Programming and Scripting | 3 | 03-16-2009 09:09 AM |
| Perl script to match a pattern and print lines | ammu | Shell Programming and Scripting | 6 | 12-22-2008 04:26 AM |
| match a pattern, print it and the next line | nymus7 | Shell Programming and Scripting | 4 | 07-29-2005 01:59 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
grep N lines after match and then print them on 1 line each
Hello
I need some help with this job. file.txt ----- cut ---- TARGET 13/11/08 20:43:21 POINT 1 MOVE 8 772102y64312417771 TARGET 13/11/08 21:10:01 POINT 2 MOVE 5 731623jjd12njhd ----- cut ---- this is the example. i need to grep for the word TARGET and print next 4 lines like that: TARGET 13/11/08 20:43:21 POINT 1 MOVE 8 TARGET 13/11/08 21:10:01 POINT 2 MOVE 5 |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|