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 > c scpipt read first line 150 line

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-03-04, 13:11
hiupong hiupong is offline
Registered User
 
Join Date: Sep 2004
Posts: 3
Question c scpipt read first line 150 line

Dear all,

I have question of C script, what code i have to create so that we can read only the first 150 lines of a given text file and,

store it into a new file suppose that the given file has more than 500 text lines??

Thx.
Reply With Quote
  #2 (permalink)  
Old 09-03-04, 13:20
vgersh99 vgersh99 is offline
Registered User
 
Join Date: Apr 2004
Location: Boston, MA
Posts: 325
look into:

man head
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