I want to store date values into a variable for future use. Please correct the sample script:
#!/bin/bash
Now_hourly = $(date +%d-%b-%H_%M)
Now_daily = $(date +%d-%b-daily)
echo $(Now_hourly)
echo $(Now_daily)
The output should be :
12-Feb-17_50
and
12-Feb-daily
But When I run the script, I am getting below error :
Now_hourly: command not found
Now_daily: command not found
=while assigning a variable.