I'm trying to find a way to remove parenthesis and brackets from directories, but they don't have all the same pattern.
Some are like this:
(1234) ABC [xyz]. Others are like this
[xyz] ABC (1234)(987).
Edit: The desired output would be
How can I do this?