I want to use sed command as below:
$ sed -n '/MONTH_TODAY DATE_YEST/,/MONTH_TODAY DATE_TODAY/p' \
/home/crmiib/TESTUSERLOG/XYZ/user.log
I can print logs using:
$ sed -n '/Jul 27/,/Jul 28/p' /home/crmiib/TESTUSERLOG/XYZ/user.log
But I want to view logs using variables instead of hard coded dates?