I have this test.sh
#!/bin/bash echo $1 calling it works:
sh ./test.sh $(date +"%F") I want to subtract 5 days from current date and pass to test.sh
sh ./test.sh $(date --date="date-5 day" +"%F") The line above does not work. What is the correct way?
--date="-5 days".