[Comm] find ... -exec и выходные потоки
spider
=?iso-8859-1?q?spider_=CE=C1_lsi=2Ebas-net=2Eby?=
Вт Сен 27 12:55:03 MSD 2005
Dmitry V. Levin пишет:
>Пожалуйста, прочтите документацию, там описан ваш случай:
>
>$ man find |colcrt |sed -ne '/^EXAMPLES/,/^E/ p' |sed -ne '/{}/,/\.$/ p'
> find . -type f -exec file '{}' \;
>
> Runs `file' on every file in or below the current directory. Notice
> that the braces are enclosed in single quote marks to protect them from
> interpretation as shell script punctuation. The semicolon is simi-
> larly protected by the use of a backslash, though ';' could have been
> used in that case also.
>
>P.S. В старых версиях пакета findutils этого примера нет.
>
>
$ man find | col -b | grep -i runs
$
Наверное у меня старая версия.
$ rpm -qa | grep findut
findutils-4.1.20-alt2
$
Подробная информация о списке рассылки community