Skip to content

To find a file down a tree

find . -ls | grep -i <filename>

that means find all files from current dir and below, and get file date etc with ls and then find those matching <filename>. The ‘-i’ argument tells grep to ignore the case (uppercase/lowercase) of characters in the filename.

Published inUnix Hint

Comments are closed.