e.g. you did:
rm -f *.log
To solve this problem, pipe the names of files one by one to rm command like this:
find . -name '*.log' | xargs rm -fIt should be easy and still effective solution for you.
rm -f *.log
find . -name '*.log' | xargs rm -fIt should be easy and still effective solution for you.