Assuming you have GNU date, like so:
date --date="1 days ago" '+%a'
And similar phrases.
Related Contents:
- How to delete duplicate lines in a file without sorting it in Unix
- Replace a string in shell script using a variable
- Identifying and removing null characters in UNIX
- Is there a Unix utility to prepend timestamps to stdin?
- Use grep –exclude/–include syntax to not grep through certain files
- “Invalid Arithmetic Operator” when doing floating-point math in bash
- Why do shell script comparisons often use x$VAR = xyes?
- Floating-point arithmetic in UNIX shell script
- How does the #! shebang work?
- Is PowerShell ready to replace my Cygwin shell on Windows? [closed]
- Copy folder recursively, excluding some folders
- How do I set $PATH such that `ssh user@host command` works?
- How do I manipulate $PATH elements in shell scripts?
- How to do a mass rename?
- Validate date format in a shell script
- Convert decimal to hexadecimal in UNIX shell script
- Shell script “for” loop syntax
- Remove part of path on Unix
- How do I split a string on a delimiter in Bash?
- In the shell, what does ” 2>&1 ” mean?
- Canonical vs. non-canonical terminal input
- How can I check if a directory exists in a Bash shell script?
- How to pass command output as multiple arguments to another command
- How to run the sftp command with a password from Bash script?
- How to read a file into a variable in shell?
- Delete all but the most recent X files in bash
- Force line-buffering of stdout in a pipeline
- YYYY-MM-DD format date in shell script
- What does $$ mean in the shell?
- Is there any simple way to benchmark Python script?
- How to suppress Terminated message after killing in bash?
- How to represent multiple conditions in a shell if statement?
- Delete specific line number(s) from a text file using sed?
- Meaning of $? (dollar question mark) in shell scripts
- sed or awk: delete n lines following a pattern
- How do I get bash completion to work with aliases?
- Is there a way to ignore header lines in a UNIX sort?
- fd leak, custom Shell
- How is % (percent sign) special in crontab?
- Parsing XML using unix terminal
- Get just the filename from a path in a Bash script [duplicate]
- Command-line Unix ASCII-based charting / plotting tool
- How to strip leading “./” in unix “find”?
- Get last field using awk substr
- Using grep for multiple search patterns
- How to expand a CMD shell variable twice (recursively)
- Unix shell script find out which directory the script file resides?
- Display filename before matching line
- What generates the “text file busy” message in Unix?
- Write byte at address (hexedit/modify binary from the command line)