Write a command to display the first 10 characters from each line of a file?

cut -c -10 filename

Related Questions

Category: UNIX Interview Questions.