I have a ton of files - TOSEC ROM sets - on my Mac (El Capitan) that have filenames suffixed with a tag in square brackets - for example
Manic Miner (1983)(Bug-Byte Software)[a]
Manic Miner (1983)(Software Projects)[a]
I'd like to search for these files, with the aim of moving and/or deleting them.
If I try to search for the files using Spotlight:
... no files are found.
If I try searching for them via Terminal:
ls *[a]*.*
... I get a list of all the files in the directory.
What's the best way of finding all files with [a]
in the filename, and moving and/or deleting them? Is there a way to encapsulate the [
and ]
so a Spotlight search will work?