input:
#word1 #word2 #word3 #word4
1.00 2.00 3.00 4.00
#end
#word1 #word3 #word4
11.00 13.00 14.00
#end
#word1 #word2 #word3 #word4
21.00 22.00 23.00 24.00
#end
#word1 #word3 #word4
31.00 33.00 34.00
#end
output:
#word1 #word3 #word4
1.00 3.00 4.00
#end
#word1 #word3 #word4
11.00 13.00 14.00
#end
#word1 #word3 #word4
21.00 23.00 24.00
#end
#word1 #word3 #word4
31.00 33.00 34.00
#end
What I like to do is to print out the certain lines between the matching strings. I can do it if all the same, but in input sometimes there are two columns, sometimes four columns. How can I get that output from the input?