cut can extract multiple columns

October 11th, 2006 mysurface Posted in cut, Text Manipulation | Hits: 51864 | 1 Comment »

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.

One Response to “cut can extract multiple columns”

  1. I own and operate a fairly popular celebrity chatter web site, and to stay topical, I utilize market pulse tools.Your domain has been burning up certain Alexa triggers, and I thought I’d check it out and understand if I could seewhat all of the buzz was about.

Leave a Reply