I have a text file called: example.txt which contains these lines:
email1:location1
email2:location2
email3:location3
I want to change it up to look like this:
location1:email1
location2:email2
location3:email3
What would be the easiest way to do this? I tried several awk commands, but couldnt get them to work. From what I read so far, its not possible with cut.
I am using Ubuntu or GNUwin32 on Windows.