Okay, so the date command in Linux. How boring is this? That’s what I thought until yesterday when I was playing around with it for a script.
By now, hopefully everyone knows the runquote trick to name a logfile. Like:
That works great to name a logfile based on the date when you’re moving them around or simply creating them.
But I did an `info coreutils date` yesterday and saw this tasty example:
$ date –date=”$(date +%Y-%m-15) -1 month” +’Last month was %B!’
Last month was June!