Path: utzoo!attcan!uunet!mcsun!hp4nl!esatst!arne From: arne@yc.estec.nl (Arne Lundberg) Newsgroups: comp.sys.hp Subject: Re: HP UX chown lacks recursive option, Why? Message-ID: <1078@esatst.yc.estec.nl> Date: 28 May 90 08:20:01 GMT References: <5570415@hpfcdc.HP.COM> <16710054@hpisod2.HP.COM> Sender: usenet@yc.estec.nl Reply-To: arne@yc.estec.nl Organization: ESTEC/YCV Lines: 33 In article <16710054@hpisod2.HP.COM>, decot@hpisod2.HP.COM (Dave Decot) writes: |>> |>> cd |>> find . -print | xargs chown |> |>This still invokes chown once per file. |> |>The following will be even faster, since it does the files up to 20 per |>invocation of chown: |> |>> find . -print | xargs -n20 chown From xargs(1) on or HP-UX 7.0 system: Flags -i, -l, and -n determine how arguments are selected for each command invocation. When none of these flags are coded, the initial-arguments are followed by arguments read continuously from standard input until an internal buffer is full, and then command is executed with the accumulated args. This seems clear enough to me, without options xargs handles *many* files per chown. I can just hope that the internal buffer is bigger than 1 argument :-). Arne Lundberg European Space Technology Centre, Noordwijk, the Netherlands arne@yc.estec.nl or ALUNDBER@ESTEC.BITNET Phone: +31 1719 84865, Fax: +31 1719 12142, Telex: 39098