Print characters 1 through 8 from each line.
Section: cut and paste
Extract character positions
bash
bash
cut -c1-8 ids.txtExplanation
Character mode is handy for fixed-width text formats.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing cut and paste