Use output from command line as a parameter for a command

listed in answer

Use output from command line as a parameter for a command
0 votes, 0.00 avg. rating (0% score)

ANSWER:

I usually enclose the command in backquotes. This works in tcsh too… I am just used to doing it this way because I write a bit of Perl.

svn diff `whatname.sh`

Or if the output can contain spaces:

svn diff "`whatname.sh`"

by paddy from http://superuser.com/questions/413665