I want to show unix date in DD-MMM-YYYY format. Month field should be in three letter capital alphapet and date and year in numerical.
I tried the below shell code but it shows in small letters. Can anyone help me to get this work?
$ date ‘+%d-%h-%Y’22-oct-2015
Use translate command (tr) to change to uppercase as shown below.
date ‘+%d-%h-%Y’ | tr [:lower:] [:upper:]
Leave a reply
Latest Post: Left Handed Facts - 5 Surprising Facts about Left-Handed People Our newest member: melindaunaipon7
Recent Posts Unread Posts Tags
Forum contains no unread posts
Forum contains unread posts