Jun 25, 2002 #1 kasparov Programmer Feb 13, 2002 203 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 Feb 13, 2002 203 GB Agreed - the vi solution's great. Thanks very much. Upvote 0 Downvote