assigning a variable

hi all,
in ksh, how do i assign the output of a find command to a variable, e.g

am trying something like this :

totalNoFiles=$(print find ./ -name "SystemOut*.log");

but when i echo $totalNoFiles it displays

find ./ -name "SystemOut*.log"

instead of the total number of files found.

any suggestions??

thanks in advance

answered my own question:

totalNoFiles=$(find ./ -name "SystemOut*.log" | wc -l);

If you are try to get the total number of files using a find you will need to count the number of files returned by the find command.

For instance

TotalNoOfFiles=`find ./ -name "SystemOut*.log" | wc -l`