I used redhat as server and now i've just installed ubuntu server. the problem is the output date format in logs is diffrent from redhat. when i use date command it show wen may 30 20:00 2012 now i want to change it to 2012.5.30.20:00 pleas help me to do that. by the w
both explain how to define a custom format for the output of the date command.
What you're looking for can be found with
with everything after the + being the string to output with the variables from the current date.