Lets take an example file as follows:
$ cat file
A B C D E
If you want to print all fields except last two fields , it can be done using "awk" as follows:
$ awk '{$NF="";$(NF-1)="";print $0}' file
A B C