Re: info vs. man (was: Re: date for week)

2024-06-11 Thread Greg Wooledge
On Tue, Jun 11, 2024 at 11:22:17PM +0700, Max Nikulin wrote: > On 11/06/2024 06:45, Greg Wooledge wrote: > > Should you ever feel a need to read the longer version of the > > documentation, it's in GNU info pages. So you would need to type > > the command "info coreutils date" to get to it. And t

info vs. man (was: Re: date for week)

2024-06-11 Thread Max Nikulin
On 11/06/2024 06:45, Greg Wooledge wrote: Should you ever feel a need to read the longer version of the documentation, it's in GNU info pages. So you would need to type the command "info coreutils date" to get to it. And then you'd need to figure out the user interface of the "info" program, wh

Re: date for week

2024-06-10 Thread Jeff Peng
thanks roberto. that's exactly what i am looking for. $ date +%a

Re: date for week

2024-06-10 Thread Greg Wooledge
On Tue, Jun 11, 2024 at 07:19:42AM +0800, Jeff Peng wrote: > While I expect the output should be: > > $ date +%such_a_option > Tuesday > > or > $ date +%such_a_option > Tue > > does date command has this option? You can run the command "man date" to read the short version of the documentation.

Re: date for week

2024-06-10 Thread rtnetz...@windstream.net
All the format codes are documented in the man page for date. in particular: +%a gives a short form, such as Mon +%A gives full name, e.g. Monday +%^a and +%^A as above, but all capital letters. - Original Message - From: "Jeff Peng" To: "debian-user" > While I expect the output shou

Re: date for week

2024-06-10 Thread Roberto C . Sánchez
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. >