The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Deleting lines in text file hern14 UNIX for Dummies Questions & Answers 5 05-16-2008 12:03 PM
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 lines from a file Nirgude07 UNIX for Advanced & Expert Users 10 09-21-2005 01:58 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-29-2007
Registered User
 

Join Date: May 2007
Posts: 4
Stumble this Post!
Deleting lines in a file

How do I delete all the lines after the line containing text ***DISCLOSURES*** . I want to delete this line too.

Thank you
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-29-2007
aigles's Avatar
Registered User
 

Join Date: Apr 2004
Location: Bordeaux, France
Posts: 1,211
Stumble this Post!
Try:
Code:
sed '/\*\*\*DISCLOSURES\*\*\*/,$d'  inputfile
Jean-Pierre.
Reply With Quote
  #3 (permalink)  
Old 05-29-2007
Registered User
 

Join Date: May 2007
Posts: 4
Stumble this Post!
Thank you that worked
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:44 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0