I have been searching for a while, but can\'t seem to get a succinct solution. I have a Mac with a folder that I want to clean of all hidden files/directories - anything hidden.
You need to be very careful and test any commands you use since you probably don't want to delete the current directory (.), the parent directory (..) or all files.
This should include only files and directories that begin with a dot and exclude . and ...