/bin/rm: Argument list too long
I got error when trying to remove thousands of file inside a directory. The way you fix this is
find . -name '*.jpg' | xargs rm
I got error when trying to remove thousands of file inside a directory. The way you fix this is
find . -name '*.jpg' | xargs rm