Removing more than one white space in powershell

后端 未结 3 1072
执念已碎
执念已碎 2021-01-01 14:53

I was trying to find a way in powershell to remove more than one white space.

But what i found is how to do it in php. \"Removing more than one white-space\"

3条回答
  •  既然无缘
    2021-01-01 15:18

    Another way. -split on the left side splits on variable white space:

    -split 'Xcopy Source  Destination' -join ' '
    
    Xcopy Source Destination
    

提交回复
热议问题