I have the following files, and need to match them like:
./foo.bar1.sh -match
./qux/foo.bar2.sh -match
./foo.sh -match
./baz.sh -no match
./foo.bar3 -no match
I have tried:
find . -regex ".*foo(bar[0-9])?.sh"
but it returns nothing. I cannot figure out why that regex won't work... help please?
