awk
is perfect for these kind of tasks. If you do not mind to have some leading spaces, you can use:
awk '{f=$1; $1=$2=""; print > f}' file
This will empty first and second fields and then print all the line into the f
file, which was previously stored as first field.
And in case these spaces are bothering, you can delete them with sub(" ", "")
:
awk '{f=$1; $1=$2=""; sub(" ", ""); print > f}' file