In a unix shell, how to get yesterday's date into a variable?
經安全檢測,此網站為安全網站,請放心前往原始網址!
In a unix shell, how to get yesterday's date into a variable?
2010年8月19日 - ... 18 down vote. dt=$(date --date yesterday "+%a %d/%m/%Y") echo $dt ..... I have shell script in Linux and following code worked for me: #!