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
tail command and timestamp Begins Shell Programming and Scripting 6 04-15-2008 11:17 PM
Problem with Tail command --urgent pls subbukns Shell Programming and Scripting 4 09-21-2006 08:29 AM
tail command whatisthis Shell Programming and Scripting 3 03-31-2005 06:34 AM
help with !(tail -2) command.. using pipes sdlayeeq UNIX for Advanced & Expert Users 8 02-17-2005 12:46 AM
tail command in SUN & HP_unix clemeot UNIX for Dummies Questions & Answers 3 05-08-2002 08:31 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-02-2006
Registered User
 

Join Date: Jan 2006
Posts: 71
tail command..

I was wondering how can I do this

I have file myfile.txt

wc -l is: 5 000 000

I have to remove first 1 000 000 lines from header..

I tryed with tail -4000000 myfile.txt>newfile.txt

but it does not work...

any help??
Reply With Quote
Forum Sponsor
  #2  
Old 06-02-2006
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,698
Code:
sed -e "1,100000d" file > file.new
Reply With Quote
  #3  
Old 06-02-2006
Registered User
 

Join Date: Jan 2006
Posts: 71
thanks..vino..I needed first 1000k lines..so I added one "0" but thanks script did a job...

Thanks..
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 02:03 AM.


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

Content Relevant URLs by vBSEO 3.2.0