print first 2 characters + second column
I guess a very simple one:
I have a long matrix with 5 columns. It looks like this:
alpha 3 xxx xxx xxx
beta 23 xx xxx xx
gamma 24 xx xxx xxx
I need the following output, in which the first two characters from column 1 are selected, plus the entire column 2:
a code like cut -c 1-2 would just solve the first column, but not the second.
Any suggestion is highly appreciated!