I need to grep a log file with today\'s date, but the output is showing for more than today\'s date.
grep date +\"20%y-%m-%d\" /path/log/General.log | grep \
You're not actually executing 'date', because it's not been surrounded by backticks. The command should be
grep `date +"20%y-%m-%d"` /path/log/General.log # ^-- ^--
Right now, as written, you are searching for the word date in two different files (+"20%Y-%m-%d", and general.log).
date
+"20%Y-%m-%d"
general.log