I have a string
"1 1 1 2 2 2
333 11 44 67 123 7676
4334"
How do I make her > "11122233311446712376764334"
Using to powershell
CodePudding user response:
You may find additional details on Powershell's string manipulation abilities from Microsoft's documentation.
$s = "1 1 1 2 2 2
333 11 44 67 123 7676
4334"
$s = $s -replace "\s",""
Write-Host $s
>> 11122233311446712376764334