![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| 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 03:58 AM |
| delete some lines | fongthai | Shell Programming and Scripting | 2 | 10-16-2007 07:54 PM |
| How to delete more lines | kamathg | Shell Programming and Scripting | 1 | 10-05-2007 03:39 AM |
| delete blank lines or lines with spaces only | vascobrito | UNIX for Dummies Questions & Answers | 3 | 01-13-2004 03:36 AM |
| delete lines.. | alisevA3 | UNIX Desktop for Dummies Questions & Answers | 8 | 05-29-2002 05:33 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Delete lines
Hi
I want to print last 10 lines using either sed/awk and delete also. Thanks , Mr |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
Thanks for your reply.Can you explain this sed -e :a -e '$d;N;2,10ba' -e 'P;D' Thanks, Mr |
|||
| Google The UNIX and Linux Forums |