![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| deleting specific lines from all files in a directory | vrms | UNIX for Dummies Questions & Answers | 3 | 04-25-2008 08:08 AM |
| Deleting last 2 lines from the file. | videsh77 | Shell Programming and Scripting | 4 | 04-06-2007 10:14 AM |
| Deleting Lines from .csv file | 009satya | Shell Programming and Scripting | 3 | 11-13-2006 11:41 PM |
| deleting lines in a log file | BG_JrAdmin | Shell Programming and Scripting | 2 | 08-22-2006 08:12 AM |
| Deleting specific columns from a file | premar | Shell Programming and Scripting | 11 | 02-14-2006 03:02 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Deleting specific lines in a file
I have a file which has some lines starting with a particular word. I would like to delete 5 lines before each such line containing that particular word.
eg: line1 line2 line3 line4 line5 line6 "particular word"... I would like to delete line2-line6 and all such occurences in that file. Thanks, Ramu |
| Forum Sponsor | ||
|
|