Finding the current week number


In our ongoing series of things you already know, unless you don’t, you can get the current week number using the C-style date(1) tool in your *nix of choice:

$ date +"%U"
==> 02

I use week numbers everywhere, especially for task lists. I saw them a lot in Singapore, but I’ve never seen them used in Australia.

Author bio and support


Ruben Schade is a technical writer and infrastructure architect in Sydney, Australia who refers to himself in the third person. Hi!

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite bespoke cloud infrastructure provider.

If you found this post helpful or entertaining, you can shout me a coffee or send a comment. Thanks ☺️.