Looking for Word Count, Character Count, or Line Count? "Not everything that counts can be counted, and not everything that can be counted counts."
Albert Einstein
But AnyCount counts precisely what you need! Read More ...
Define What To Count Settings in AnyCount determine which objects should or should not be included in count results. These may include numbers, footers, headers, text in shapes, and so on. After files and folders have been selected and added, click Settings button to adjust common and format specific count settings

Read About All Formats
Select Count Units Before starting counting process, ensure that you select right count units. These can be characters with spaces, characters without spaces, words, lines, pages or your own count units. Currently selected count unit is displayed in the bottom right corner of the AnyCount window. You can change count unit with the help of drop-down list.

Read About All Formats
Obtain Precise Results After you click the Count! button AnyCount Text Count Engineruns and produces word counts, line counts, page or character counts for the documents you have selected. After the text count is completed, results are displayed in the table

Try free Anycount 8 !
* * * *
image image image image

Word Count in Unix

All my previous posts were related to the Windows-based word count software, but I thought that it is pretty unfair to forget about millions of UNIX users, so today we have a UNIX word count session.

Of course my UNIX experience is not that huge (it was all about testing a Fedora core under virtual machine), so below you will find mostly the reprints of the word count tips published in other Internet-media.

Word count using the “wc” command (taken from Wiki)

“wc” (short for word count) is a command in Unix-like operating systems. The program reads either standard input or a list of files and generates one or more of the following statistics: number of bytes, number of words, and number of lines (specifically, the number of newline characters). If a list of files is provided, both individual file and total statistics follow.

This is how to use the “wc” command:
• wc -l print the line count
• wc -c print the byte count
• wc -m print the character count
• wc -L print the length of longest line
• wc -w print the word count

Well, taking into consideration the languages that don’t use space mark, byte count will be very much appreciated by users from China, Japan and Thailand.

Word count without using the “wc” command

After user Gburg inquired how to execute a loop to count each word in a file individually, without using the wc command, the following reply followed:

You can use the script below if your words are space seperated.

typeset -i I=0
{ while read line
for wort in `echo $line`
done } < $1
echo $I

Many thanks to user Frank from everybody, except users from China, Japan and Thailand, for whom the script there should be another script 🙂

That’s basically all for UNIX word count today.

P.S. Fans of the open source platforms will definitely like this video. Even such a Windows guy as me liked the trick 🙂

Leave a Reply

Time limit is exhausted. Please reload CAPTCHA.