cut

Cut out fields from stdin or files. More information: https://keith.github.io/xcode-man-pages/cut.1.html.

command | cut -c|f 1|1,10|1-10|1-|-10

command | cut -d "," -f 1

cut -c 1 path/to/file