I had a strange problem when trying to list all files i a folder.

I typed:

 find . *.gz

And received:

-bash: /usr/bin/find: Argument list too long

After searching on internet I saw a lot of similar problems, but then I remembered one of my old posts

bash: /bin/rm: Argument list too long – How to fix it

After reviewing it for on more time I found my mistake

Correct syntax is:

find . -name "*.gz"

Comments

One Response to “-bash: /usr/bin/find: Argument list too long – Fix”

  1. JAb-ba on September 26th, 2011 11:50 pm

    thanks for your post very useful

Leave a Reply