I have been editing a large text file containing pairs of lines as follows (repeated):
\> destination_file.txt
js -e "var e='.jpg',t='b',i='14712583',h='0.us.is.example.com',s='/',n='WIV',u='jasper1123/3/example.com_'+i+n.charAt(2)+n.charAt(0)+n.charAt(1); console.log('http://'+t+h+s+u.charAt(0)+s+u+e);"
CORRECTED VERSION BELOW:
line 1
line 2
line 3
line 4
How can I move the first line to the end of the second line as follows:
line 2
line 1
line 4
line 3
The text file contains thousands of pairs of lines as above.
Is there a terminal command I can run to do this?
Basically, the data above is the result of combining and editing numerous html pages.
Any suggestions would be appreciated.
I have gotten this far in large part from the help here on this forum.