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}"
Which of the following commands puts the output of the command date into the shell variable mydate?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Which of the following commands puts the output of the command date into the shell variable mydate?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!