let DIFF=(`date +%s -d 20120203`-`date +%s -d 20120115`)/86400
echo $DIFF
More Related Contents:
- Convert date formats in bash
- equivalent date from GNU to solaris
- Using `date` command to get previous, current and next month
- Print date for the monday of the current week (in bash)
- How to redirect output to a file and stdout
- How to kill a child process after a given timeout in Bash?
- ./configure : /bin/sh^M : bad interpreter [duplicate]
- How to join multiple lines of file names into one with custom delimiter?
- How to redirect the output of the time command to a file in Linux?
- How to handle more than 10 parameters in shell
- How to count lines in a document? [closed]
- Changing default shell in Linux [closed]
- Linux Script to check if process is running and act on the result
- Example of using named pipes in Linux shell (Bash)
- Passing variables in remote ssh command
- Syntax error: “(” unexpected — with !(*.sh) in bash script
- How to execute a remote command over ssh with arguments?
- Execute command after every command in bash
- How can I find out a file’s MIME type (Content-Type)?
- How to exit if a command failed? [duplicate]
- How do I change bash history completion to complete what’s already on the line?
- How can I run a Windows executable from WSL (Ubuntu) Bash
- What does ‘bash -c’ do?
- Using colors with printf
- Identify user in a Bash script called by sudo
- how to detect invalid utf8 unicode/binary in a text file
- How to automatically add user account AND password with a Bash script?
- Meaning of tilde in Linux bash (not home directory)
- How do I delete all lines in a file starting from after a matching line?
- Bash `wait` command, waiting for more than 1 PID to finish execution