Video Coming Soon...

Created by Zed A. Shaw Updated 2026-11-26 20:48:52
 

53: cut

WARNING: This is from the Go course but I'm rewriting the code and the description to fit C. If you want to attempt it go ahead. The challenge is the same, just no examples yet.

The cut command takes input that's "tabular" and cut it into columns to display. It's a very useful tool when you have data that you only want a slice of, but don't want to write a little program to do the slicing.

The Challenge

To get your version of cut working you'll need to implement these options:

  • -f -- Sets the list of fields to output.
  • -d -- Sets what character delimits (separates) the fields. By default this is \t.

The documentation for cut is at:

Previous Lesson Next Lesson

Register for From Impostor to Programmer

Register today for the course and get the all currently available videos and lessons, plus all future modules for no extra charge.