How to get the first day of last month, and the last day of last month in bashby iwikFebruary 19, 2010March 16, 2010 DATE_FROM=`date -d "-1 month -$(($(date +%d)-1)) days" "+%F"` DATE_TO=`date -d "-$(($(date +%d)-1)) days" "+%F"` Tags:bashdate Leave a ReplyYour email address will not be published. Required fields are marked *Name * Email * Website Comment * Save my name, email, and website in this browser for the next time I comment. Please type "5ecc81": Leave this field empty please: previousMigrating RRD between 32 and 64 bit systemsnextRemoving Received field in mail header with Postfix