Link to home
Start Free TrialLog in
Avatar of Francisco
FranciscoFlag for Japan

asked on

solars 10 bash : want to get date like 1/15/14 , i.e. m/dd/yy

hi

I am working on solars 10, and having query on simple bash command,
would like to get date like 1/15/14 , i.e. m/dd/yy , instead of mm/dd/yy

I can simply do like below, but I would like to remove 0 (zero) from month...

bash-3.2$ date "+%m/%d/%y"
01/15/14
bash-3.2$ date "+%D"
01/15/14

can somebody help me on simple scripting or command?
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you support GNU libc extension
date "+%-m/%d/%y"
Avatar of Francisco

ASKER

thanks a lot both for support and though let me take this solution this time!