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?
Asked
Active
Viewed 4,155 times
4
Gilles 'SO- stop being evil'
- 829,060
MOTIVECODEX
- 151
1 Answers
7
date --date 'Jul 16 1991' +%A
See man date, specifically the section on output formatting.
Chris Down
- 125,559
- 25
- 270
- 266
date --date %A 'Jul 16 1991'but did not work, I get the order now. Thank you – MOTIVECODEX Nov 17 '12 at 23:30+is important. – user Nov 19 '12 at 10:26