I am trying to port a script from a Ubuntu Linux box to a macOS laptop and I'm struggling to get my find
with a regex setup correctly.
In a directory, I have the following files.
/Users/kevin/Documents/Audio/arn/2400/Report2400.clip.mp3
/Users/kevin/Documents/Audio/arn/2400/Report2400.clip1.mp3
/Users/kevin/Documents/Audio/arn/2400/Report2400.clip2.mp3
/Users/kevin/Documents/Audio/arn/2400/Report2400.clip3.mp3
/Users/kevin/Documents/Audio/arn/2400/Report2400.clip4.mp3
/Users/kevin/Documents/Audio/arn/2400/Report2400.clip5.mp3
/Users/kevin/Documents/Audio/arn/2400/Report2400.clip6.mp3
/Users/kevin/Documents/Audio/arn/2400/Report2400.clip7.mp3
/Users/kevin/Documents/Audio/arn/2400/Report2400.clip8.mp3
running this command:
find . -regex 'Report2400\.clip[0-9]+\.mp3'
I'm expecting to get 8 files, the 8 with a number after "clip", but nothing is returned.
What am I missing? I know it's basic, but I'm close to checking myself into a mental hospital.
g
likegfind
,ggrep
... and you can use an alias to replace the BSD tools