shell-script count number of spaces in file

February 28, 2011 at 04:19:16
Specs: Windows XP
enter file and count number of spaces of them without using "wc" tag

See More: shell-script count number of spaces in file

Report •


#1
February 28, 2011 at 07:39:20
One way is to cycle thru the file, and using the cut command, look at each character. If that character is a space, update the counter.

Here are links to help you out:

http://www.computing.net/answers/pr...
http://www.computing.net/answers/un...
http://www.computing.net/answers/un...


Report •
Related Solutions


Ask Question