Ed The Dev .com

Edward Delaporte's Technical Journal

Modify every line of a file using PowerShell

no comment

get-content text1.txt | % { $_ -replace “|”, “” } | % { $_ -replace ” “, “” } > text2.txt

Leave a Reply

You must be logged in to post a comment.