in reply to passing a variable value to Unix command

Also, remember that Perl has its own version of find, and you can even get Perl to write the script for you:

# find all files modified in past 24 hours and do a line count

find2perl . -mtime -1 -exec wc -l {} \;