hi! i have a hundred file in my file server with an extension ex:
bak,autobak,backup of.......etc
and i want to delete it every day to save some space and i do it like this
find . -name *.bak -print -exec rm {} \;
find . -name *.autobak -print -exec rm {} \;
and so on
is there a better way to combine all bak,autobak,backup of in one command??? i try this but doest work correct me if iam wrong
the command is:
find . -name '*.[bak autobak backup of]' -print -exec rm {} \;