The man page of cut says
Selected input is written in the same order that it is read, and is written exactly once.
So you have to use another tool instead of cut. For example sed, awk, perl, python or bash.
The man page of cut says
Selected input is written in the same order that it is read, and is written exactly once.
So you have to use another tool instead of cut. For example sed, awk, perl, python or bash.