Hi,
Thanks it is working.
Another query about date:
I use the following to replace the "0" with space in front of the date:
Code:
DATE=`date +"a %b %d" | sed 's/0/ /'`
The output produced "Thu Apr 2" instead of "Thu Apr 02". The result is what I wanted but it will also remove "20" to "2". That is "Thu Apr 20" becomes "Thu Apr 2", the result is not I wanted.
Is there a way to work around?