hi,
the following appears to be failing. i hope someone can tell me why..
so i'm trying to create a file with the current date as the prefix in the following way (following instructions from a tutorial):
Code:
touch 'date +%F'.log
its creating the file as:
date +%F.log
instead of 2011-07-31.log
i also tried the following:
Code:
var='expr 1 + 2'
echo $var
now i thought it should display the result as 3 but instead its printing the string:
expr 1 + 2
what am i getting wrong/missing/failing to understand?
thanks!