Steve Litt wrote:
> 
> Does Lyx have a WordCount function? If not, this appears to work:
> 
> grep -v "^[\]" z.lyx | grep -v "^#LyX 1.1" | grep -v "^$"  | wc -w
> 
> In the preceding z.lyx is the file whose words you're counting. Basically,
> you blow off anything starting with a backslash (putting a backslash in your
> content results in a \backslash line, not in your content line starting with
> a backslash). The next grep blows off the first line, and the third grep
> blows off blank lines. You pipe the result into wc, counting only words.
> 
> Do any of you have better ways of counting words?

http://www.educat.hu-berlin.de/~voss/lyx/count.html

Herbert


-- 
http://www.educat.hu-berlin.de/~voss/lyx/

Reply via email to