i have multiple files like this
TEST:200333
75252
TEST:198234
201756
TEST:201616
274
TEST:200118
934521
TEST:123456
1234
and I want an output like this
200333;75252
198234;201756
201616;274
200118;934521
123456;1234
I tried this code but it doesn't work:
powershell -Command "(gc myFile.txt) -replace 'TEST:(\.+)\r\n(\.+)\r', '\1;\2' | Out-File -encoding ASCII mynewFile.txt"
