RE: Lines in a text file

Subject: RE: Lines in a text file
From: "Bill Trippe" <btrippe -at- nmpub -dot- com>
To: "TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Tue, 25 May 2004 17:54:46 -0400


Dan Goldstein wrote:

>
> Does anyone know of a way to count the lines in a text file
> without opening
> it? I'm familiar with Word's line-counting ability, but I don't think that
> that will help in this case.
>

Hi Dan,

This is probably too long a distance for you to travel, but if it is truly a
text file (not a binary) and you can get it on a UNIX or LINUX box, the wc
command does exactly this. It would follow the syntax:

wc -l (filename)

It would return the number of lines.

There are UNIX shells you can run on top of Windows. See, for example,
Cygwin.

http://www.cygwin.com/

If you have a need to do this kind of thing often and need to continue using
Windows (as I do), it is probably worth running something like Cygwin.

Hope this helps!

Bill


^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

SEE THE ALL NEW ROBOHELP X5 IN ACTION: RoboHelp X5 is a giant leap forward
in Help authoring technology, featuring Word 2003 support, Content
Management, Multi-Author support, PDF and XML support and much more! http://www.macromedia.com/go/techwrldemo

>From a single set of Word documents, create online Help and printed
documentation with ComponentOne Doc-To-Help 7 Professional, a new yearly
subscription service offering free updates and upgrades, support, and more.
http://www.doctohelp.com

---
You are currently subscribed to techwr-l as:
archiver -at- techwr-l -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit
http://www.raycomm.com/techwhirl/ for more resources and info.



References:
Lines in a text file: From: Goldstein, Dan

Previous by Author: RE: Paper Manual to Online Help - where to start?
Next by Author: Re: Presentation about the writer -- Me??
Previous by Thread: Lines in a text file
Next by Thread: RE: Lines in a text file


What this post helpful? Share it with friends and colleagues:


Sponsored Ads