![]() |
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 |
| 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 |
| delete some lines | fongthai | Shell Programming and Scripting | 2 | 10-16-2007 11:54 PM |
| How to delete more lines | kamathg | Shell Programming and Scripting | 1 | 10-05-2007 07:39 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 09:33 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
N; Read the next line into the pattern-space.
$!P; Print the first line of the pattern-space, if the current line is not the last line. $!D; Delete the first line of the pattern-space, if the current line is not the last line. $d Delete everything in the pattern-space, if the current line is the last line. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|