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 > Find word count for large files

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-29-09, 08:26
shijoe shijoe is offline
Registered User
 
Join Date: Mar 2009
Posts: 13
Find word count for large files

I have huge size of files like 565678919856 bytes in our server. I am not able to take the word count of this file using regular unix command wc -l . Do we have any oter method or command to find the word count for large files in unix.
Reply With Quote
  #2 (permalink)  
Old 04-29-09, 08:57
mike_bike_kite mike_bike_kite is offline
vaguely human
 
Join Date: Jun 2007
Location: London
Posts: 2,517
Quote:
Originally Posted by shijoe
I have huge size of files like 565678919856 bytes in our server. I am not able to take the word count of this file using regular unix command wc -l . Do we have any oter method or command to find the word count for large files in unix.
Is this just one file? I only ask as the bible (itself a very large book) is roughly 5mb while your file is approx 10,000 times bigger than this. Can we ask what is in this file? I assume it's not the collected thoughts of G.W.Bush. I believe wc has an issue printing counts higher than 1000000.
Reply With Quote
  #3 (permalink)  
Old 04-29-09, 09:50
shijoe shijoe is offline
Registered User
 
Join Date: Mar 2009
Posts: 13
Thanks for the update. Its just the single file.
Reply With Quote
Reply

Thread Tools
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