Jussi Hirvi wrote:
Lawrence Guirre (lawrence.guirre@gmail.com) kirjoitteli (17.10.2008 12:55):
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.
Than he doesn't have as many files in the directory as you have:
#define ARG_MAX 131072 /* # bytes of args + environ for exec() */
That's from /usr/include/linux/limits.h. Also see http://partmaps.org/era/unix/arg-max.html
Ralph