I have a tab-delimited text file in the following format.
Col1 | Col2 | Col3 123.0 | 534.2 | Blah0 2031/23/12 23.00 | 786.2 | Blah1 2033/01/01 12.40 | 343.0 | Blah2 2031/27/11 I need to remove all the characters after the space from the last column. So my output would be
Col1 | Col2 | Col3 123.0 | 534.2 | Blah0 23.00 | 786.2 | Blah1 12.40 | 343.0 | Blah2 How should I go about this using Awk or something similar?