![]() |
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 |
| Delete Multiple White Spaces | eja | UNIX for Dummies Questions & Answers | 6 | 04-18-2008 06:34 AM |
| Need to delete multiple lines in a file. | kangdom | Shell Programming and Scripting | 6 | 10-16-2006 11:02 AM |
| Need a script to delete multiple files | navycow | UNIX for Dummies Questions & Answers | 3 | 01-16-2006 02:50 PM |
| delete multiple empty lines | whatisthis | Shell Programming and Scripting | 3 | 11-09-2005 05:42 PM |
| Delete multiple lines w/ sed | bookoo | Shell Programming and Scripting | 2 | 07-25-2003 10:03 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
multiple delete using sed
Hi, I used to use sed to delete pattern from file using:
sed '/PATTERN/d' myfile but how if I have 100 pattern to delete which is listed separated by new line in file called mypattern sed -e '/PATTERN1/d' -e '/PATTERN2/d' and so on would be tedious Can anyone help, Thanks a lot |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|