Sunday, August 16, 2009

How to search for a file using the "find" command in bash (not case sensitive)

find start_directory -name "*" | grep -i search_string

e.g. "find . -name "*" | grep -i hobba" searches within the current directory and can return a file with name "aamr_HoBba.log" for example.

No comments: