On Tue, Jun 11, 2024 at 07:19:42AM +0800, Jeff Peng wrote: > Hello, > > I run the folllowing command, > > $ date +%w > 2 > > > While I expect the output should be: > > $ date +%such_a_option > Tuesday > > or > $ date +%such_a_option > Tue > > does date command has this option? > > Thanks. >
You probably want: $ date +%a Mon $ date +%A Monday -- Roberto C. Sánchez