cut

cut#

Slice columns from text.

$ cut -d: -f1 /etc/passwd
$ cut -c1-10 file