This is something I get asked quite a lot.
Some peopleĀ use the -Replace operator, others the .Replace() method.
Did you know you could use a regex for this?
Easy and very, very fast š
1 |
(get-content MyFile.txt) -match '\S' |
This is something I get asked quite a lot.
Some peopleĀ use the -Replace operator, others the .Replace() method.
Did you know you could use a regex for this?
Easy and very, very fast š
1 |
(get-content MyFile.txt) -match '\S' |