Deutsch   English   Français   Italiano  
<pan$2d437$c79a548c$945396fd$527603cd@y2plugh.fqdn.th-h.de>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Ralf Damaschke <rwspam@gmx.de>
Newsgroups: comp.unix.shell
Subject: Re: IFS=$'\n'
Date: 14 Aug 2024 22:55:40 GMT
Organization: C.H.A.O.S.
Lines: 15
Message-ID: <pan$2d437$c79a548c$945396fd$527603cd@y2plugh.fqdn.th-h.de>
References: <v9f5c1$3q99m$1@dont-email.me>
	<83a5hgad4i.fsf@helmutwaitzmann.news.arcor.de>
	<pan$989b5$e7369b52$2a19adc3$14541b89@y2plugh.fqdn.th-h.de>
	<slrnvbpe2b.20ve.naddy@lorvorc.mips.inka.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net ZioMIYENfrlNp96DhSiRfgXNNZmyW1bEv9wmVDe00ySHJtJLZD
Cancel-Lock: sha1:2oBWYRLMyBkZkKzm76h2qGuwZGw= sha256:/+b4Fay/TObK4HzjPbCo1lIotPFTDE2GUDf6axrDK3w=
User-Agent: Pan/0.144 (Time is the enemy; 28ab3ba git.gnome.org/pan2)
Bytes: 1701

Christian Weisgerber wrote:

> If sufficiently many files accrue, find(1) will invoke ls(1) several
> times, which will not produce the expected result.  That may be unlikely
> in this specific example, but it can happen in the general case.
> 
> Wait, you say, xargs(1) will also split its input across multiple
> invocations.  I mean, that's very much the point of xargs.  Which is why
> Helmut added the -x flag, which is supposed to prevent this behavior.

I see the point, but I hope I never meet a use case that says
"do something with the files found, but throw the list away if it can't
be done all at once". I would rather first assemble the list, try to execute
the command with it and if needed switch to some different approach of
handling the files.