From: Vladimir Karpinsky <vkarpinsky@mail.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] find and xargs
Date: Tue, 31 Mar 2009 10:19:42 +0400
Message-ID: <49D1B5FE.8000606@mail.ru> (raw)
In-Reply-To: <20090330193902.GA3651@snowwhite.immo>
Pavlov Konstantin пишет:
> On Mon, Mar 30, 2009 at 11:32:18PM +0400, Vladimir Karpinsky wrote:
>> Здравствуйте!
>>
>> Насколько я понял man, для предотвращения нежелательных ситуаций с xargs, в
>> случае когда find ничего не находит, рекомендуется использовать -print0 в
>> find и -0 в xargs, но:
>>
>> find ./ -size -1k -print0 | xargs -0p ls -l
>> ls -l ?...n
>>
>> файлов меньше 1k в текущем каталоге нет, и ls -l получает на вход пустую
>> строку со всеми вытекающими. Вероятно, я что-то не понял --- наставьте на
>> путь истинный.
>
> А зачем -p в аргументах к xargs?
В том каталоге, в котором я это пытался применить, более 2000 файлов, а
я подключался по не медленному каналу. А с p можно было увидеть, что
передаётся xatgs'у и сказать "нет". Без p всё содержимое каталога
валится на экран, даже Ctrl-C не сразу отрабатывает.
--
С уважением,
Владимир.
next prev parent reply other threads:[~2009-03-31 6:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-30 19:32 Vladimir Karpinsky
2009-03-30 19:39 ` Pavlov Konstantin
2009-03-31 6:19 ` Vladimir Karpinsky [this message]
2009-03-31 6:23 ` Vladimir Karpinsky
2009-03-31 8:29 ` Konstantin S. Uvarin
2009-03-31 9:56 ` Vladimir Karpinsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49D1B5FE.8000606@mail.ru \
--to=vkarpinsky@mail.ru \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git