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

Popular posts from this blog

java - unable show chart in xls document using jasper reports -

java.lang.RuntimeException: Could not generate dummy secret at sun.security.ssl.RSAClientKeyExchange.<init> -

javascript - How to change image src on success AJAX -