change modification date
FreeBSD
touch -d "2016-10-${i}T00:00:00"
Linux
touch -d "2 hours ago" filename touch -d "$(date -R -r filename) - 2 hours" filename
touch
touch -d "2016-10-${i}T00:00:00"
touch -d "2 hours ago" filename touch -d "$(date -R -r filename) - 2 hours" filename