![]() |
|
|
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 |
| proble in running .properties file | sari | Linux | 0 | 04-22-2008 04:25 AM |
| Awk array proble!!!Please help | timj123 | Shell Programming and Scripting | 0 | 01-28-2008 09:02 PM |
| proble in ftp script | ravindra shukla | Shell Programming and Scripting | 6 | 08-28-2006 05:57 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
hi all,
i am again surrounded by a big problem,,, i have 2 files file1.txt file2.txt aaaa xxxx xxxxx xxxxxxxxxxxxxxx zzzz zzzz zzz bbb aaaa xx xxxx xxxx xxx zzzz zzzz zzz yyy yy xx xxxxxx i need to have selection in the script as #!/bin/sh for file in file*txt do sed -n '/aaa/,/bbb/p' $file >outputfile done but i get in outfile is mix of required pattern space {ie aaa--bbb} and unwanted space from {aaaa(II)--EOF} how to remove this second unwanted pattern spaces from getting printed ... ![]() |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|