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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-02-2006
amon amon is offline
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??
  #2 (permalink)  
Old 06-02-2006
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
Code:
sed -e "1,100000d" file > file.new
  #3 (permalink)  
Old 06-02-2006
amon amon is offline
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..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:59 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0