Thursday, April 27, 2006

Linux 'rm' limit

This morning I was amazed by the fact that Linux complained when i tried to remove a big bunch of files from a directory:

bash$ rm -f *.trc

-bash: /bin/rm: Argument list too long


Luckily I found a simple workaround:
bash$ find . -name '*trc' | xargs rm
Post a Comment