[Novalug] any clever options on 'rm'

Joel Fouse joel@fouse.net
Tue Oct 23 10:13:09 EDT 2007


On Tue, 2007-10-23 at 06:04 -0400, Kevin Dwyer wrote:

> It splits the args into chunks.  They will fit under the size limit set
> by --max-chars (or the internal default), and you can change the maximum
> number of args per command with --max-args.  And if you'd like to see
> the OS limits, xargs --show-limits.
> 
> -kpd


On Tue, 2007-10-23 at 09:50 -0400, Stuart D. Gathman wrote: 

> Use the "-t" (trace) option to xargs to see how it works.  There is indeed
> a memory limit for args.  Xargs fills it up from the input, runs the command,
> then repeats as needed.  (Lather, rinse, repeat.) I would paste some output
> from -t, but the memory limit is rather large these days...



Huh, I'd only known xargs for taking stdin and appending it to the argument 
list of the requested command.  I've happily learned something new this
morning -- my thanks to you both!

- Joel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.firemountain.net/pipermail/novalug/attachments/20071023/225ab46c/attachment.htm>


More information about the Novalug mailing list