I just want to do a simple thing. I got the following files in a directory:
AppInterface.h baa PEMsg.h PluginInterface.h
Then I issue the command:
ls | grep -v ".h" | rm -rf
To my horror, baait is not removed. But this:
ls | grep -v ".h"
gives baaas I expect. So I think the problem is with how it rmaccepts input, but I donβt know why. Tried this in both csh and bash.
source
share