I want to change date format of last reboot time. How can I do this? Any idea ? I cut the other things from last reboot command. The last seems :
Output : 1 Nov 2015
But I want like this :
dd/mm/yyyy : 01/11/2015
Since you already cut the output you just have to convert it to different format, try below you will find your expected format.
export DATE="1 Nov 2015"
date -d"$DATE" +%d/%m/%Y
01/11/2015
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.