Page 1 of 1

Which of the following commands puts the output of the command date into the shell variable mydate?

Posted: Sat Jul 23, 2022 7:42 pm
by answerhappygod
Which of the following commands puts the output of the command date into the shell variable mydate?

A. mydate="$(date)"
B. mydate="exec date"
C. mydate="$((date))"
D. mydate="date"
E. mydate="${date}"