I just experimented a bit in linux and ended up getting very many files in one and the same folder. Now when I try to do
rm -f folder/*.png
I get
-bash: /bin/rm: Argument list too long
Is there some easy way to get past this?
Own work:
I suppose I could make an ugly script which loops through rm on the result of something like
ls /folder/ | head -100 | grep ".*\.png"
But really, there must be an easier Gnu way to do it?
find ... | xargs ...
answer) – Mark Plotnick Dec 07 '15 at 17:34