If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Query about cutting of files

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-24-04, 09:49
freakie freakie is offline
Registered User
 
Join Date: Dec 2003
Posts: 6
Query about cutting of files

Hi,

Just a simply query and the solution at the moment is really escaping this newbie:-)

I have a simple csv file containing say 50 lines.

Now the first 15 lines contains some header which I am not interested in.

Is there any way via a shell script to cut the first 15 lines of the file so that I end up with the rest of it?

Cheers,
Freakie
Reply With Quote
  #2 (permalink)  
Old 02-24-04, 09:55
aigles aigles is offline
Registered User
 
Join Date: Jan 2004
Location: Bordeaux, France
Posts: 319
Code:
tail +16 input_file > output_file
__________________
Jean-Pierre.
Reply With Quote
  #3 (permalink)  
Old 02-24-04, 09:58
freakie freakie is offline
Registered User
 
Join Date: Dec 2003
Posts: 6
Quote:
Originally posted by aigles
Code:
tail +16 input_file > output_file

Duh!!!...Thanks mate!!!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On