Reg:how to search a file recursivly

Hi Guys,

can any help to write a script to search for a file Recursively and i need to write a path of the file into some other file.

May be upto 5 directories.

Regards,
Rajanikanth.

Use the the find command and redirect the output to your file.

Regards

Actuly i d'not know unix.....just i am leaner...
can oyu pls post it...

find / -name filename -print > logfile 2>/dev/null

This will find all the files with name as filename from / and will write the output to logfile.

Hope this will help u ..:wink: