Can U pipe filenames to rm???

Conor P. Cahill cpcahil at virtech.uucp
Sat Sep 29 22:10:38 AEST 1990


In article <1990Sep29.001151.11544 at diku.dk> kimcm at diku.dk (Kim Christian Madsen) writes:
>
>If you're sure the output of the ninstall does not exceed the limit of
>what the shell you're using can handle (Bourne shell usually 5Kbytes),
>you can use the following approach:
>
>	ninstall .... | xargs rm

No.  xargs was specifically written to handle the argument count and length
limits for command executions.  What it will do is run the rm command
multiple times (each with the maximum number of arguments that do not
exceed the limitations).



-- 
Conor P. Cahill            (703)430-9247        Virtual Technologies, Inc.,
uunet!virtech!cpcahil                           46030 Manekin Plaza, Suite 160
                                                Sterling, VA 22170 



More information about the Comp.unix.shell mailing list