print first 3 characters to a file from each row from a file

I have a file with few rows of data (trailer.txt),  I could have more in future .I have to print first 3 characters from each row to a file (tralier.sorted.txt)
the input file and output file  of  how the data has to look are attached
trailer.txt
trailer-sorted.txt
ucoAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
ozoConnect With a Mentor Commented:
cut -c 1-3 trailer.txt | sort
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.