I need for the 5th column in a delimited text file to be reduced to just the first 5 characters. All other columns must remain unedited.Input:file1.txt    column1      column2      column3     column4      column5123456789    123456789    123456789   123456789    123456789I would like the output to look like:output.txt    column1      column2      column3     column4      column5123456789    123456789    123456789   123456789    12345Note: I happen to use commas as the delimiter.
Reduce length of specific column in delimited text file
text processing;scripting;columns
If file.csv looks like this:123456789,123456789,123456789,123456789,123456789123456789,123456789,123456789,123456789,223456789123456789,123456789,123456789,123456789,323456789123456789,123456789,123456789,123456789,423456789awk -F, '{print $1,$2,$3,$4,substr($5,1,5) }' file.csvwill output this:123456789,123456789,123456789,123456789,12345123456789,123456789,123456789,123456789,22345123456789,123456789,123456789,123456789,32345123456789,123456789,123456789,123456789,42345