What is the correct statement?

The output of the program date should be saved in the variable actdat. What is the correct statement?

The output of the program date should be saved in the variable actdat. What is the correct statement?

A.
actdat=`date`

B.
set actdat=’date’

C.
date | actdat

D.
date > $actdat

E.
actdat=date



Leave a Reply 1

Your email address will not be published. Required fields are marked *


fe

fe

vagrant@ubuntu-xenial:~$ actdat=date
vagrant@ubuntu-xenial:~$ echo $actdat
date
vagrant@ubuntu-xenial:~$ actdat=’date’
vagrant@ubuntu-xenial:~$ echo $actdat
date
vagrant@ubuntu-xenial:~$ actdat=”date”
vagrant@ubuntu-xenial:~$ echo $actdat
date
vagrant@ubuntu-xenial:~$