![]() |
|
|
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 |
| Help with selecting specific lines in a large file | tansha | UNIX for Dummies Questions & Answers | 2 | 02-06-2008 08:26 AM |
| Urgent: selecting unique specific content of a file using shell script | jisha | Shell Programming and Scripting | 2 | 01-08-2008 08:45 AM |
| Replacing a paragraph between pattern , with the content 4m another file | go4desperado | Shell Programming and Scripting | 4 | 12-07-2006 09:44 AM |
| Archiving Files by selecting years file created | dmhammond | UNIX for Dummies Questions & Answers | 2 | 06-13-2005 03:12 PM |
| Selecting records from file on criteria. | videsh77 | Shell Programming and Scripting | 7 | 12-29-2004 02:20 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
selecting each paragraph and put it into a file...help me
Dear Friends,
I need a shell script. I am facing a problem while selecting the text that is between start and end tags. and insert the paragraph into a file1, next paragraph in file2...... experts please help. i have a file which contains, -------------- <abc> 111some text some text some text some text some text some text some text some text some text </abc> ===blank line====== <abc>222 some text some text some text some text some text some text some text some text some text </abc> ===blank line====== <abc> 333some text some text some text some text some text some text some text some text some text </abc> ------------------------------- I want to get the text that started with <abc> and end with </abc> and put it into a file. i.e., file1 should contain following text, <abc>111 some text some text some text some text some text some text some text some text some text </abc> file2 should contain following text, <abc>222 some text some text some text some text some text some text some text some text some text </abc> and file3 should contain following text, <abc>333 some text some text some text some text some text some text some text some text some text </abc> it will be a great help if any one can gives the solution. Thanks in Advance, Narayanaswamy M |
|
||||
|
vary urgent please help me....please
Dear Friends,
I need a shell script. I am facing a problem while selecting the text that is between start and end tags. and insert the paragraph into a file1, next paragraph in file2...... experts please help. i have a file which contains, -------------- <abc> 111some text some text some text some text some text some text some text some text some text </abc> ===blank line====== <abc>222 some text some text some text some text some text some text some text some text some text </abc> ===blank line====== <abc> 333some text some text some text some text some text some text some text some text some text </abc> ------------------------------- I want to get the text that started with <abc> and end with </abc> and put it into a file. i.e., file1 should contain following text, <abc>111 some text some text some text some text some text some text some text some text some text </abc> file2 should contain following text, <abc>222 some text some text some text some text some text some text some text some text some text </abc> and file3 should contain following text, <abc>333 some text some text some text some text some text some text some text some text some text </abc> it will be a great help if any one can gives the solution. Thanks in Advance, Narayanaswamy M |
|
||||
|
You have already been given the advice in this thread
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|