Im using the command below , but thats not the output that i want. it only prints the odd and even numbers.
awk '{if(NR%2){print $0 > "1"}else{print $0 > "2"}}'
Im hoping for something like this
file1:
Text hi this is just a test
text1 text2 text3 text4 text5 text6
Text hi another text
data1 data2 data3 data4 data5 data6
Output:
Text hi this is just a test
text5 text4 text1 text2 text3 TEXT6_willbe replaced_by_BOOK
Text hi another text
data5 data4 data1 data2 data3 DATA6_willbe replaced_by_BOOK