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" -

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -