Linux Date: Suppress Zeros in Formatting

Linux date command can not just print the current date

> date
Tue Jan 11 16:52:33 GMT 2022

but also format it which is really cool - you just put + and follow with date format like:

> date +%Y-%m-%d
2022-01-11

If you need to remove zeros, use - i.e.

date +%Y-%-m-%-d
2022-1-11

Have a question⁉ Contact me.