I found out that date --date 'Jul 16 1991' has an complete output, but I only want the terminal to show the name of the day e.g. Monday. How do I do that?
date --date 'Jul 16 1991'
date --date 'Jul 16 1991' +%A
See man date, specifically the section on output formatting.
date --date %A 'Jul 16 1991'
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
3 years ago