Shell Script – Store command output to variable
Brief: This example will help you to understand to store the output of a command to a variable in a shell script.
1 2 3 4 | $ TODAY=`date` $ echo $TODAY Mon Jun 25 17:23:51 IST 2018 |
Brief: This example will help you to understand to store the output of a command to a variable in a shell script.
1 2 3 4 | $ TODAY=`date` $ echo $TODAY Mon Jun 25 17:23:51 IST 2018 |