I am using HP-Unix B.11.31.
Question: How to do the case insensitive search using FIND?
Example: I would like list the files with extension of *.SQL & *.sql.
When I try with command find . -type f -name *.sql, it does not lists file with *.SQL.
I am using HP-Unix B.11.31.
Question: How to do the case insensitive search using FIND?
Example: I would like list the files with extension of *.SQL & *.sql.
When I try with command find . -type f -name *.sql, it does not lists file with *.SQL.
Anything you tried yourself?
find . -type f -name "*.[sS][qQ][lL]"
# or
find . -type f| grep -i sql
Use "-iname" option for case-insensitive match.
find . -type f -iname "*.sql"
I get error find: bad option -iname, if i use -iname.
$ find . -type f -iname "*.sql"
find: bad option -iname
I think this option is not available in HP-UX. It is OK in Linux.
Thanks both commands work like charm!