I have a list of directories where most are in a format like ./[foobar]/
. However, some are formatted like ./[foo] bar/
.
I would like to use find
(or some other utility my shell offers) to find those directories not matching the first pattern (i.e. having text outside the square braces). Until now, I was unable to find a way to "inverse" my pattern.
Any ways to do this?