On Friday 03 May 2002 09:46 am, Matej Cepl wrote:
> On  3 May, Mark Hansel wrote:
> > If you are using a *nix, you can strip all the lyx and latex
> > lines from the file and pipe the text only to wc. The idea is
> > not mine and appeared on this list about half a year ago. I
> > have the command in a script that is sometimes useful.
> >
> > grep -v "[\]" $1|grep -v "$L yx 1.1" |grep -v "^$"
> >
> > If you understand this, you should be able to figure out what
> > to do with it. Make sure to do the right thing with the "$1"
> > (replace with file name or put it back into a script so the $1
> > makes sense).
> >
> > If your are using windows, you have my pity.
>
> There is a program detex, which does basically the same as above
> oneliner (only in much more sophisticated manner), so you can do
>
> detex docname.tex | wc -w
>
> (yes, Virginia, both commands DO exist for both *nix and M$-*
> systems).

Where would one get detex for Linux?

Steve
-- 
_____________________________________________________________
Steve Litt
Author: 
  * Troubleshooting Techniques of the Successful Technologist
  * Rapid Learning: Secret Weapon of the Successful Technologist
http://www.troubleshooters.com/bookstore/

Troubleshooters.Com Webmaster 
(Legal Disclaimer) Follow these suggestions at your own risk.
-------------------------------------------------------------



Reply via email to