how do i change the following to show me what the date was 7 days ago?
date +%Y-%m-%d
how do i change the following to show me what the date was 7 days ago?
date +%Y-%m-%d
try
date +%Y-%m-%d --date=-7days
Warning works for GNU date only