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
Post a Comment