Hello there,
usually I don't have any issue using regex usually, but today.... It just doesn't want to work.
I've a text file (called "
data") containing this:
and I what to format it this way 16/05/16
so this should do the trick in theory:
Code:
sed -re 's/^(\d{4})(\d{2})(\d{2})/\3\/\2\/\1/g' data
but it still give me this "
20110516"
Any idea?