Limit each line in a text file to 152 characters using PowerShell

71 Views Asked by At

I had a text file with multiple lines. Our software is not picking up files with characters more or less than 152 characters per line. So, I need a PowerShell script to limit the number of characters to 152 in each line.

0

There are 0 best solutions below