Store command output to variableShell Script – Store command output to variableBrief: This example will help you to understand to store the output of a command to a variable in a shell script.Shell$ TODAY=`date` $ echo $TODAY Mon Jun 25 17:23:51 IST 20181234$ TODAY=`date` $ echo $TODAYMon Jun 25 17:23:51 IST 2018Doc navigation← Split a string on a delimiterRead file line by line? →