Tuesday, August 2, 2011

cut command

I have a large text file (its a log file actually) and I need to truncate each line to about 16 characters.

cut -c1-16 /path/to/filename > /path/to/output_filename

output_filename will contain the result.

No comments:

Post a Comment