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

Solaris


Tags
sed, tail

Closed    
 
Thread Tools Search this Thread Display Modes
    #8  
Old Unix and Linux 06-09-2009
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
Quote:
Originally Posted by Franklin52 View Post
Should be:


Code:
sed "/^SG/d" file

Regards
Thanks All. It worked.
Sponsored Links
Closed

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 04:47 AM
Delete some lines in a file ponmuthu UNIX for Advanced & Expert Users 5 07-28-2010 02: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 02: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 05:07 AM
delete the lines from file sameersam Shell Programming and Scripting 2 04-04-2006 01:32 AM



All times are GMT -4. The time now is 11:45 PM.