Guest_imported
New member
- Jan 1, 1970
- 0
I would like to access to my shell variable in this script:
mydate='date | awk '{print $3 $4}''
awk '
{
print $0, $mydate
}' namefile
It does work if I put '$mydate' my variable mydate is taken like a string($mydate) and not a variable containing the date.
mydate='date | awk '{print $3 $4}''
awk '
{
print $0, $mydate
}' namefile
It does work if I put '$mydate' my variable mydate is taken like a string($mydate) and not a variable containing the date.