cut

Extract a portion of each line

Syntax

cut OPTION… [FILE]…

Example

  • cut -c 6-20 file

  • cut -d . -f 2 file