Wednesday, June 11, 2008

Cut Command in Unix

Cut command in unix can make your life a lot easier.

Most important of them are

-d (delimiter) by which the fields are separated
-f (fields) fields which you want to get it printed.

E.g w | cut -d' ' -f 1

No comments: