0
(0)

#Search the file with its name

$ find ./test -name "1.txt"
./test/subdir/1.txt

#to search for specific files from specific directories/sub directories.

$ find /home1/test -type f -exec grep -l 1.html {} \;

wildcards can be used to search for specific pattern

$ find ./test -name "*.html"

./test/abc.html
./test/subdir/1.html


we can use "iname" to search for pattern without checking case

$ find ./test -iname "*.html"

./test/abc.html
./test/subdir/1.Html

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.