How to make a UK date out of a standard date format string using sed? -


the string fri may 3 13:50:37 2013 has reorder fri 3 may 2013 13:50:37. how can achieved using sed?

sed isn't right tool here want awk:

$ echo "fri may 3 13:50:37 2013" | awk '{print $1,$3,$2,$5,$4}' fri 3 may 2013 13:50:37 

in awk $i represents ith field arrange fields in order required.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -