Friday, June 10, 2005

Command subsitution

Assign command output to a variable:


$ today=(date +%d-%b-%Y)


this is similar to the older Bourne-style syntax like:


$ today=`date +%d-%b-%Y`

0 Comments:

Post a Comment

<< Home