uintmax_t can't count to 100 billion. But since you have coreutils source, you can always recompile a version of wc using type long long for total_lines. Galing talaga ng open source!
Pablo M. *** --- On Mon, 2/16/09, Ramil Galib <[email protected]> wrote: > From: Ramil Galib <[email protected]> > Subject: Re: [plug] Maximum number of lines wc can count > To: "Philippine Linux Users' Group (PLUG) Technical Discussion List" > <[email protected]> > Date: Monday, February 16, 2009, 4:31 PM > Since Google can't answer me, I download the coreutils > source package > in which wc belongs. > the variable total_lines is of type uintmax_t. > Now I'm getting somewhere. > > > > On 2/16/09, Roger Filomeno <[email protected]> > wrote: > > I should since the whole file is not actually loaded > into memory. Its jst > > going to take a lot of I/O > > -- > > Roger P. Filomeno > > TwitSnap: The coolest Twitter widget for your site! > http://www.twitsnap.com > > > > http://corruptedpartition.blogspot.com/ > > TEL#: +1-360-968-1767 > > SMS: send MSG GODIE <YOUR MESSAGE> to 2948 > > > > $> who | grep -i blond | date; cd ~; unzip; touch; > strip; finger; mount; > > gasp; yes; uptime; umount; sleep > > > > > > On Mon, Feb 16, 2009 at 12:27 PM, Ramil Galib > <[email protected]> wrote: > > > >> Hi All, > >> > >> I have text files ranging from 5 to 10 GB. I want > to use wc -l to > >> count the number of lines of these files. I expect > the number of lines > >> to be from 50 to 100 billion. > >> Can wc handle this? > >> Hope you can help. > >> Thanks! > >> > >> Ramil _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List http://lists.linux.org.ph/mailman/listinfo/plug Searchable Archives: http://archives.free.net.ph

