I want to delete all files which have names containing a specific word, e.g. \"car\". So far, I came up with this:
find|grep car
How do I pass
I like to use
rm -rf $(find . | grep car)
It does exactly what you ask, logically running rm -rf on the what grep car returns from the output of find . which is a list of every file and folder recursively.
rm -rf
grep car
find .