linux - changing format of date shell -
i want change date format of last reboot time. how can this? idea ? cut other things last reboot command. last seems :
output : 1 nov 2015
but want :
dd/mm/yyyy : 01/11/2015
since cut output have convert different format, try below find expected format.
export date="1 nov 2015" date -d"$date" +%d/%m/%y 01/11/2015
Comments
Post a Comment