Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Trim text in CSV to first 50 characters

$
0
0

Hi,

Hoping to get a little help with this.

I have a CSV file which is generated by another script. But i need to make sure that none of the values in the CSV file are greater than 50 characters long. Can someone help me compile a powershell script that reads the contents of the CSV and deletes any excess characters in a  value in the CSV which is greater then 50 characters long.

Thanks


Regards,

Denis Cooper

MCITP EA - MCT

Help keep the forums tidy, if this has helped please mark it as an answer

Blog:http://www.windows-support.co.uk Twitter:  LinkedIn:


Viewing all articles
Browse latest Browse all 15028

Trending Articles