Hi everybody,
To run my script: myscript copy -t "2011-11-11" -s 3
<-- the 2nd $OPTARG is "2011-11-11", so inside the script the awk calls for $2 and it took up the argument passed in instead of the 2nd column from free -g.
oth=$(free -g | grep 'Mem' | awk '{print $2}')
Please help.
Thanks