Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How do I insert spaces in the [+format] string of the date command


I am running Fedora Core 25, GNU Coreutils 8.25. I use one of the virtual consoles (Ctrl+Alt+F3).

When I run:

date +%a%b

I get:


I would like to insert a space between Tue and Dec, therefore I run:

date +%a %b

However, instead of a space between Tue and Dec, I get:

date: extra operand %b

Can you guys help me out to get the space between Tue and Dec?

Many thanks, Andrei