I'm really stuck on my scripting because of this problem. I need my script to accept arguments and give me the result but since i have spaces it only displays the first word. eg.
cat open.sh
echo My name is $1
export start=`date +"%b %d %k:%M:%S %Y"`
[oracle@spiderman scripts]echo $start
Jul 01 3:03:18 2016
[oracle@spiderman scripts]$sh open.sh `echo $start`
The time is Jul
I need the output as The time is Jul 01 3:03:18 2016.
I need to pass the same output to another complex script.
$@
instead of$1
. – terdon Jul 01 '16 at 10:42