Live Chat!

cut can extract multiple columns

* * *     2 votos

October 11th, 2006 mysurface Posted in Text Manipulation, cut | Hits: 9837 |

I am here to shows an example of cut extract 2 columns from 5 columns.

cut -d" " -f1,5 <<< "hello, my name is mysurface."

The result output is

Hello, mysurface.

-d specified the delimiter, -f specified the fields to extract.

Leave a Reply