Regular Expression in Find command [KSH]

view full story

http://www.unix.com – Hello, I am trying to use regex wtih find command in KSH. For some reason it is not working as expected. Input: Code: comm_000_abc_0102.c comm_000_abc.c 456_000_abc_1212.cpp 456_000_abc_.cpp Expected Output: Code: comm_000_abc_0102.c kkm_000_abc_8888.cpp (Basically I want to find all files recursively to see all back up files - which I generally create adding MMDD before .c or .cpp) I tried this: Code: find . -name "*[\w]+[\d].mp" -print | egrep [\w]+[\d].mp find . -regex "*[\w]+[\d].mp" find . -regextype sed -regex  "*[\w]+[\d].mp&quo (HowTos)