Hi I need help to know how can we pass the vairble 2015-12-16 08:16: to grep command
bash-3.2$ Heartbeat=$(date +%Y-%m-%d$'\t'%H:%M:)
bash-3.2$ echo $Heartbeat
2015-12-16 08:16:
bash-3.2$ grep $Heartbeat file.txt is not working correct, but
grep '2015-12-16 08:16:' file.txt works correctly.
Please help me how can we do this for variable.