![]() |
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 |
| Grep and delete lines except the lines with strings | vj8436 | Shell Programming and Scripting | 14 | 04-17-2009 11:25 AM |
| How to delete first 5 lines and last five lines in all text files | ragavendran31 | Shell Programming and Scripting | 10 | 02-21-2008 07:58 AM |
| sed help - delete last 2 lines. | vino | Shell Programming and Scripting | 2 | 06-08-2005 06:50 AM |
| delete blank lines or lines with spaces only | vascobrito | UNIX for Dummies Questions & Answers | 3 | 01-13-2004 07:36 AM |
| delete lines.. | alisevA3 | UNIX Desktop for Dummies Questions & Answers | 8 | 05-29-2002 08:33 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
how to delete lines
Hi All,
I have a file called test.flg.fl and the data contains in the file as below mmddyy_list20.prn mmddyy_list21.prn mmddyy_list22.prn mmddyy_list23.prn mmddyy_list24.prn mmddyy_list25.prn mmddyy_list26.prn mmddyy_list27.prn mmddyy_list28.prn mmddyy_list29.prn mmddyy_list3.prn mmddyy_list30.prn mmddyy_list31.prn mmddyy_list32.prn mmddyy_list33.prn mmddyy_list34.prn mmddyy_list35.prn mmddyy_list36.prn mmddyy_list37.prn mmddyy_list38.prn mmddyy_list42.prn I need to delete lines which contain list21 to list 37 (i.e. list21, list22, list23 etc etc..). So my new file test.flg.fl will be now looks like below after I delete the lines. mmddyy_list20.prn mmddyy_list3.prn mmddyy_list38.prn mmddyy_list42.prn Can you please tell me the command how to do this to delete those lines using Unix shell scripts? Please let me know if you need more informations. Thank you! |
| Sponsored Links | ||
|
|