LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   output the path for files whose names include string "string" (case insensitive) (https://www.linuxquestions.org/questions/linux-newbie-8/output-the-path-for-files-whose-names-include-string-string-case-insensitive-625775/)

sean_zhang 03-04-2008 11:57 PM

output the path for files whose names include string "string" (case insensitive)
 
Hi

I cannot figure out a way to do the job described in the title.
I couldn't find an option for command find to ingore case, while I cannot output the path name using command ls -R | grep.
Can anybody give me some suggestion?

Many thanks.

chrism01 03-05-2008 12:59 AM

find <start_dir> -type f -print |grep -i <your-string>


All times are GMT -5. The time now is 01:37 PM.