[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about date
From: |
Philip Rowlands |
Subject: |
Re: Question about date |
Date: |
Sun, 6 Aug 2006 00:42:21 +0100 (BST) |
On Sat, 5 Aug 2006, Lum wrote:
I see you can use b to get an abbreviated month such as Aug but how do I get
it in upper case (AUG)?
Not directly, but you could pipe the output through something like:
$ date +%b | tr '[:lower:]' '[:upper:]'
AUG
On Solaris is there a utility to get yesterday's date in formats 060805 and
20060805?
With coreutils date this works - I don't have a Solaris system to test
on, but I'd assume it's similar:
$ date +%Y%m%d
20060806
$ date +%y%m%d
060806
Cheers,
Phil