QuestionQ153Verified/Essential CommandsCopy linkReport a problemAsk AstroTutorSave questionWhich command below stores the output of the date command in the shell variable mydate?Amydate="$(date)"Bmydate="exec date"Cmydate="$((date))"Dmydate="date"Emydate="${date}"Show AnswerAnswerExplanation$(date) is command substitution in the shell: it runs date and substitutes its standard output into the assignment to mydate.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion