Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

for loop on date in bash

d=2015-01-01
while [ "$d" != 2015-02-20 ]; do 
  echo $d
  d=$(date -I -d "$d + 1 day")

  # mac option for d decl (the +1d is equivalent to + 1 day)
  # d=$(date -j -v +1d -f "%Y-%m-%d" "2020-12-12" +%Y-%m-%d)
done
Comment

PREVIOUS NEXT
Code Example
Shell :: install firebase angular 8 
Shell :: reinstall xcode cli tools 
Shell :: linux get uuid of partition 
Shell :: apache enable site 
Shell :: remove nginx mac 
Shell :: webpack-dev-server command not found 
Shell :: Warning: os-prober will not be executed to detect other bootable partitions. Systems on them will not be added to the GRUB boot configuration. 
Shell :: hot to remove .env from git 
Shell :: clean memory cache on linux 
Shell :: dual boot time fix 
Shell :: install java in kali linux 
Shell :: how to install and enable docker on command line with EC2 instance 
Shell :: centos install vim 
Shell :: batch remove quotes 
Shell :: command to install fish shell 
Shell :: android_home ubuntu 
Shell :: awk print first column 
Shell :: uncommit last commit 
Shell :: how to remove heroku from git 
Shell :: restart xampp linux 
Shell :: Problem binding to port 80: Could not bind to IPv4 or IPv6 letsencrypt 
Shell :: how to install pytube 
Shell :: Failed to start cron.service: Unit not found. in centos7 
Shell :: how to install golang on manjaro 
Shell :: ubuntu stop process on port 
Shell :: install particular version of laravel 
Shell :: netstat listening port 8080 mac 
Shell :: uninstall mongodb ubuntu 
Shell :: git remove user email 
Shell :: install react native navigation 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =