redirecting console output to a file in unix

Viewed 17177

I have been trying to search for a file in my ftp server using find command

find ./* -iname "MyLog.log"

I am getting very large amount of output. I am trying to redirect this output into a file using the below commands.

find ./* -iname "MyLog.log"  > ./myfile/storeLog.log

and

find ./* -iname "MyLog.log"  tee ./myfile/storeLog.log

Still I am able to see the output in console but not in file.

Can anyone help me on how can i redirect the output to a file when we use find command in unix.

1 Answers
Related