Jeremy Sanders wrote: >>> piping ls to xargs should do the trick. man xargs for details. >> Ok, thanks for ideas, Laurent and Lawrence. >> >> A strange limitation in ls and rm, though. My friend said he hasn't seen >> that in Fedora. > > This limitation has been removed from more recent kernels. > > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b6a2fea39318e43fee84fa7b0b90d68bed92d2ba > > http://www.gnu.org/software/coreutils/faq/#Argument-list-too-long It is probably still best not to expect the ability to build infinitely long command lines. You can hit some other limit eventually. -- Les Mikesell lesmikesell at gmail.com