I have the following file
more file.txt
1 2 3 4 4 2
23 4 5 23 2 3
END_OF_LINE
1 3 7 4 2
23 4 6 7 4 2 1 5
How to print only the fields 4 and 5 and 6 until the line END_OF_LINE , and from the line END_OF_LINE until the end of file , the same lines ( all the fields )
Meanwhile I have only partial solution
awk '{print $4" "$5" "$6}'
Example: of the requested output
awk syntax ..... file.txt
4 4 2
23 2 3
END_OF_LINE
1 3 7 4 2
23 4 6 7 4 2 1 5