I have a list of folders that all have a year in parentheses, except for a few:
./Folder 1 (2001) ./Folder 2 (2008) ./Folder 3 ./Folder 4 (1994) ./Folder 5 (2005) ./Folder 6
I would like to delete the folders (and contents therein) that don't have a parentheses in their name via the command line. In the above example,
Folder 3 and
I know that if I wanted to delete all the folders that do have a parentheses in their title I could do:
rm -rf *(*
But I don't know how to do it the other way around.