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
   [EMAIL PROTECTED]

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to