![]() |
|
|
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 |
| extract a line from a file using the line number | grandtheftander | Shell Programming and Scripting | 7 | 01-22-2009 10:24 AM |
| Extract a line from a file using the line number | zambo | Shell Programming and Scripting | 1 | 05-01-2008 02:39 PM |
| replace first instance(not first instance in line) | IronHorse7 | Shell Programming and Scripting | 3 | 02-07-2008 01:29 PM |
| Help: Log data extract | kenm0j0 | Shell Programming and Scripting | 1 | 10-01-2007 09:02 AM |
| extract data from file | apalex | Shell Programming and Scripting | 2 | 04-27-2002 02:24 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
extract data between nth and n+1th instance of a line
folks..
i need a simple one liner to extract data from between the (n)th and (n+1)th instance of a line in a 2 colum file. eg....for n=3 i should get back 0 1 4 6 help would be much appreciated. file blah.txt ################## identifer line 0 3 0 3 identifer line 0 2 0 1 0 3 identifer line 0 1 4 6 identifer line 0 2 0 1 0 3 0 2 0 1 0 3 EOF ############################# |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|