ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] find and xargs
@ 2009-03-30 19:32 Vladimir Karpinsky
  2009-03-30 19:39 ` Pavlov Konstantin
  2009-03-31  8:29 ` Konstantin S. Uvarin
  0 siblings, 2 replies; 6+ messages in thread
From: Vladimir Karpinsky @ 2009-03-30 19:32 UTC (permalink / raw)
  To: community

Здравствуйте!

Насколько я понял man, для предотвращения нежелательных ситуаций с xargs, в 
случае когда find ничего не находит, рекомендуется использовать -print0 в 
find и -0 в xargs, но:

find ./   -size -1k -print0 | xargs -0p ls -l
ls -l ?...n

файлов меньше 1k в текущем каталоге нет, и ls -l получает на вход пустую 
строку со всеми вытекающими. Вероятно, я что-то не понял --- наставьте на 
путь истинный.

-- 
	С уважением,
		Владимир.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-03-31  9:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-30 19:32 [Comm] find and xargs Vladimir Karpinsky
2009-03-30 19:39 ` Pavlov Konstantin
2009-03-31  6:19   ` Vladimir Karpinsky
2009-03-31  6:23     ` Vladimir Karpinsky
2009-03-31  8:29 ` Konstantin S. Uvarin
2009-03-31  9:56   ` Vladimir Karpinsky

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