Unix/Linux Go Back    

Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

delete first 100 lines from a file


sed, tail

Thread Tools Search this Thread Display Modes
Old Unix and Linux 06-09-2009   -   Original Discussion by salaathi
libin4u2000 libin4u2000 is offline
Registered User
Join Date: Dec 2008
Last Activity: 30 November 2009, 9:55 PM EST
Location: Singapore
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Originally Posted by Franklin52 View Post
Should be:

sed "/^SG/d" file

Thanks All. It worked.
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
In a huge file, Delete duplicate lines leaving unique lines krishnix UNIX for Advanced & Expert Users 16 08-04-2011 05:47 AM
Delete some lines in a file ponmuthu UNIX for Advanced & Expert Users 5 07-28-2010 03:39 PM
How get only required lines & delete the rest of the lines in file reva UNIX for Dummies Questions & Answers 7 06-01-2010 03:58 AM
How to delete lines in a file that have duplicates or derive the lines that aper once necroman08 Shell Programming and Scripting 3 07-17-2009 06:07 AM
delete the lines from file sameersam Shell Programming and Scripting 2 04-04-2006 02:32 AM

All times are GMT -4. The time now is 12:07 PM.