Hi, I would like to use find command to find file with a predefined extension
for example find . modules/*.ksh .lib
I thought it's possible to use something like :
find . modules/.[ksh|lib] but it does not work. is there any other way?
Thanks you
Hi, I would like to use find command to find file with a predefined extension
for example find . modules/*.ksh .lib
I thought it's possible to use something like :
find . modules/.[ksh|lib] but it does not work. is there any other way?
Thanks you
try it out.
man find and search for the -o and -a
find . -name "*.ksh" -o "*.lib" -print
find . -type f \( -iname "*.ksh" -or -iname "*.lib" \)
Thank you very much itkamaraj. It works fine!