How to get the current date value in epoch i.e., number of days elapsed since 1970-1-1. I need solution in unix shell script.
echo `date +%s`/86400 | bc