Date command - month of year, blank padded?
Im trying to create a variable in my shell script that contains todays date but with the day and month padded with blanks:
Code:
date +%e/%m/%Y Is there I way i can achieve this? |
ok, so you want to show 1/6/2006. try the following script
Quote:
|
oh that worked perfectly - thanks for the help :)
|
You have other options too...
Code:
date +%_d/%m/%y Code:
%e day of month, space padded; same as %_d try: Code:
date +%_d/%_m/%y Code:
j_shaw@jshawlptp:~$ date +%_d/%_m/%y |
All times are GMT -5. The time now is 06:09 PM. |