dt=$(date --date yesterday "+%a %d/%m/%Y")
echo $dt
More Related Contents:
- Replace a string in shell script using a variable
- How to delete duplicate lines in a file without sorting it in Unix
- Identifying and removing null characters in UNIX
- Why do shell script comparisons often use x$VAR = xyes?
- Is there a Unix utility to prepend timestamps to stdin?
- Use grep –exclude/–include syntax to not grep through certain files
- Is PowerShell ready to replace my Cygwin shell on Windows? [closed]
- How do I set $PATH such that `ssh user@host command` works?
- How to do a mass rename?
- Date arithmetic in Unix shell scripts
- How do I manipulate $PATH elements in shell scripts?
- What is the general syntax of a Unix shell command?
- Convert decimal to hexadecimal in UNIX shell script
- unix command line execute with . (dot) vs. without
- Diff files present in two different directories
- How do I change a shell scripts character encoding?
- Creating string of repeated characters in shell script [duplicate]
- How to add text at the end of each line in unix
- Shell script “for” loop syntax
- In the shell, what does ” 2>&1 ” mean?
- What is the difference between $(command) and `command` in shell programming?
- How to run Unix shell script from Java code?
- What does “&” at the end of a linux command mean?
- Run java jar file on a server as background process
- Equivalent of *Nix ‘which’ command in PowerShell?
- Print lines in one file matching patterns in another file
- What does the ^M character mean in Vim?
- How to split a file into equal parts, without breaking individual lines? [duplicate]
- Remove part of path on Unix
- Call a Unix Script from Excel Vba