всем начинающим хакерам
посвящается:
[root@www html]# ls -la
total 16
drwxr----- 2 500 500 4096 Aug 27 09:09 .
drwxr----- 4 500 500 4096 Sep 24 1998 ..
-rw-r----- 1 500 500 79 Aug 27 09:03 index.html
-rw-r----- 1 root root 8 Aug 27 09:09 stam.htm
[root@www html]# cat index.html
raz dva tri
[root@www html]# cat stam.htm
raz dva
[root@www html]# expr `wc -w < index.html` + `wc -w < stam.htm`
5
[root@www html]# wc --help
Usage: wc [OPTION]... [FILE]...
Print line, word, and byte counts for each FILE, and a total line if
more than one FILE is specified. With no FILE, or when FILE is -,
read standard input.
-c, --bytes print the byte counts
-m, --chars print the character counts
-l, --lines print the newline counts
-L, --max-line-length print the length of the longest line
-w, --words print the word counts
--help display this help and exit
--version output version information and exit
Report bugs to <bug-textutils@gnu.org>.
[root@www html]# Ctrl-D