4

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?

1 Answers1

7
date --date 'Jul 16 1991' +%A

See man date, specifically the section on output formatting.

Chris Down
  • 125,559
  • 25
  • 270
  • 266