I would like know if there's a parameter for the date function in UNIX that shows the day as 1 digit instead of 2 digits?
For example, tomorrow is 02/03 (date +%m/%d). How can I make it show up as 2/3 with this date function. I can write a script to strip off the leading zeros, but I would like to know if this is possible using the date function. It would save me a lot more time. Thanks.
For example, tomorrow is 02/03 (date +%m/%d). How can I make it show up as 2/3 with this date function. I can write a script to strip off the leading zeros, but I would like to know if this is possible using the date function. It would save me a lot more time. Thanks.