I would like to delete specific column from textual table I've got as an output in bash. Here is sample data:
Column_1 Column_2 Column_3
15 20 40
10 30 50
... ... ...
5 10 20
Lets say I would like to delete whole second column to have something like this:
Column_1 Column_3
15 40
10 50
... ...
5 20
I tried to use AWK to do this, by specifying that I want to print columns $1 and $3:
awk '{print $1 $3}'
but it doesn't work in general case when number of columns is just N.
How to do this in bash?