Execute a system command: Difference between revisions

Line 332:
MYCMDOUTPUT=`ls`
echo $MYCMDOUTPUT
 
'''Note:''' in these last cases, C-Shell and Korn Shell, these are "back ticks" rather than quotes or apostrophes. These "backticks" can also be used in Bourne compatible shells, though the '''$(...)''' form is preferred when discussing such things in e-mail, on USENET, or in other online forums (such as this wiki). Also the '''$(...)''' form of command substitution is nestable.
Anonymous user