• Zero tolerance mode in effect!

Оценка количества текста

Цефа

Администратор
Команда форума
Есть ли какой-нибудь способ или шерверная программка которая может определить количество текста (слов) сразу в нескольких html файлах - что-нибудь типа "эти 10 файлов содержат 10,000 слов" ?
Или всё таки придется копировать каждый в Ворд и там считать ?
 
всем начинающим хакерам ;) посвящается:

[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
 
ну и конечно опытные хакеры самое простое решение всегда оставляют на потом :D :

[root@www html]# wc -w index.html stam.htm
3 index.html
2 stam.htm
5 total
[root@www html]#
 
Назад
Сверху Снизу