I want find these files :
- smart users04.csv
- smart users07.csv
when I enter this:
find . -type f -regex "\bsmart\susers\d{2}\.csv\b"
It returns with nothing
I want find these files :
when I enter this:
find . -type f -regex "\bsmart\susers\d{2}\.csv\b"
It returns with nothing
See comments to question ;)
find . -type f -regextype posix-extended -regex '.*\bsmart\s+users[0-9]{2}\.csv\b'
Try this:
find . -type f -regex ".*smart users..\.csv"
or:
find . -type f -regextype egrep -regex ".*smart.users[[:digit:]]{2}.csv"
or even:
find . -type f -regextype egrep -regex ".*smart users[[:digit:]]{2}.csv".