![]() |
|
|
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 |
| Reading file names from a file and executing the relative file from shell script | anushilrai | Shell Programming and Scripting | 4 | 03-10-2006 05:25 AM |
| Reading specific contents from a file and appending it to another file | dnicky | Shell Programming and Scripting | 5 | 10-04-2005 06:45 AM |
| Help with multiple file rename - change case of part of file name | steve7 | UNIX for Dummies Questions & Answers | 7 | 06-30-2005 02:41 PM |
| reading specific line from file | cool_boss2121 | Shell Programming and Scripting | 10 | 04-26-2005 10:05 PM |
| reading files for specific dates | siva_jm | Shell Programming and Scripting | 3 | 06-08-2004 05:19 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Reading specific part of file
I have a requirement to go to particular line in the file and from there read the contents till it meets a particular criteria. For eg if the contents of the file is like
81 abcd ------------------- Line 1 82 cdfe ------------------- Line 2 83 dfj ------------------- Line 3 84 df ------------------- Line 4 81 dkfh ------------------- Line 5 82 df ------------------- Line 6 83 dlf ------------------- Line 7 84 dif ------------------- Line 8 81 sdfh ------------------- Line 9 82 dfjh ------------------- Line 10 83 kdf ------------------- Line 11 84 dfj ------------------- Line 12 What the program should do is go to line number 5 directly and from there read the contents of the file till it finds the line starting with 81 again. TIA Narayana Gupta |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|