Sunday, September 6, 2009

Formatting of date in bash terminal


$ date
Mon Sep 7 08:45:53 SGT 2009

$ date +'%m-%d-%y'
09-07-09

$ date +'%D'
09-07-09

$ date +'%H:%M%P'
08:49am

No comments:

Blog Archive