![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Need help in parsing text file contents | Alecs | Shell Programming and Scripting | 0 | 03-30-2008 12:58 PM |
| Text File Parsing | Djlethal | Shell Programming and Scripting | 2 | 02-27-2008 03:31 AM |
| Parsing comma delimited text file | chengwei | Shell Programming and Scripting | 5 | 02-23-2007 05:38 AM |
| Parsing Lines from a text file | sallender | Shell Programming and Scripting | 3 | 08-26-2005 11:11 AM |
| Text parsing question | 98_1LE | UNIX for Dummies Questions & Answers | 3 | 03-24-2002 11:04 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Parsing text from file
Any ideas?
1)loop through text file 2)extract everything between SOL and EOL 3)output files, for example: 123.txt and 124.txt for the file below So far I have: Code:
sed -n "/SOL/,/EOL/{p;/EOL/q;}" file
Code:
SOL-123.go something goes here something goes here EOL-123.go SOL-124.go something goes here EOL-124.go Last edited by Yogesh Sawant; 04-02-2008 at 03:23 AM.. Reason: added code tags |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|