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?
//characters that is not between[]characters? Would that mean any string that doesn't match/[.*]/- with appropriate escaping of the/and[]characters, of course... ? As for "match something that is not"... see stackoverflow.com/questions/406230/…