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 > Reading a line using shell

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-29-04, 13:16
gomes009 gomes009 is offline
Registered User
 
Join Date: Feb 2004
Posts: 37
Reading a line using shell

I am trying to read a huge file with some 1.1 million rows in it. I want to create another file reading rows from 624544 to 785555. I tried using the wc -l command but it doesn't work .

Pleas help!

Thanks
Reply With Quote
  #2 (permalink)  
Old 06-29-04, 13:32
vgersh99 vgersh99 is offline
Registered User
 
Join Date: Apr 2004
Location: Boston, MA
Posts: 325
sed -n '624544,785555p' largeFile
__________________
vlad
+-----------------------+
| #include <disclaimer.h> |
+-----------------------+
Reply With Quote
  #3 (permalink)  
Old 06-29-04, 13:41
gomes009 gomes009 is offline
Registered User
 
Join Date: Feb 2004
Posts: 37
Thanks a lot, It works like a charm!!
Appreciate!
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