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
To view what you are going to delete first, since rm -fr is such a dangerous command:
rm -fr
find /path/to/file/ | grep car | xargs ls -lh
Then if the results are what you want, run the real command by removing the ls -lh, replacing it with rm -fr
ls -lh
find /path/to/file/ | grep car | xargs rm -fr