Skip to content

Instantly share code, notes, and snippets.

@yamyamyuo
Created October 11, 2018 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yamyamyuo/1057e84b0fc80a675270930b3bcd51bc to your computer and use it in GitHub Desktop.
Save yamyamyuo/1057e84b0fc80a675270930b3bcd51bc to your computer and use it in GitHub Desktop.
shell date add or substract
#!/bin/bash
for i in `seq 1 355`;
do
data_date=`date -v -${i}d +%F`
echo $data_date
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment