I have a file named ip-list with two columns:
ip-list
IP1 Server1 IP2 Server2
And I want to produce:
Use awk:
awk '{print $2,$1}' ip-list
That should give you what you want.