I have a case where, I need to look into a file.
Go to each line of the file, find the length of the line, if the length of the line is more than 75 chars, I need to split the line into multiple lines of 75chars max. If the length of the line is less than 75, we need not do anything.
So at the end of this operation , maximum length of anyline in the file should be only 75.
Ex: file having 3 lines
1st line: 20chars
2nd line: 85chars
3rd line: 160chars
after the executing the script,
The file should be
1st line:20 chars
2nd line: 75 chars
3rd line: 10 chars
4th line: 75 chars
5th line: 75 chars
6th line: 10 chars
Thanks for your help