Jun 25, 2002 #1 kasparov Programmer Joined Feb 13, 2002 Messages 203 Location GB Can anyone suggest the best way to swap 2 lines in a file? I want to swap line 14 with line 26. I assume there must be a quick way of doing this with awk or perl or maybe something else but if so ... I don't know it. Thanks in advance
Can anyone suggest the best way to swap 2 lines in a file? I want to swap line 14 with line 26. I assume there must be a quick way of doing this with awk or perl or maybe something else but if so ... I don't know it. Thanks in advance
Jun 26, 2002 Thread starter #21 kasparov Programmer Joined Feb 13, 2002 Messages 203 Location GB Agreed - the vi solution's great. Thanks very much. Upvote 0 Downvote