2 Minutes To Code (β Version)

'cut' command - 2 minute tutorial

Overview of 'cut' command

The unix command 'cut' is a very handy tool to extract parts of each line of a file. What 'cut' does is, it cuts out a set of bytes or character or fields from each row of the file.

We will start with a few basic examples and then explore all the advanced options that 'cut' provides.