Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell (Replacing White Spaces with a comma)

$
0
0

The object property values output tends to be tabular with varying white spaces between each column. I’m looking for a script that will allow me to:

  1. Output the object property values to a file
  2. Remove all white spaces encountered (regardless of the number of spaces)
  3. Replace the spaces with one (1) comma

Replace isn’t the answer unless I literally define each instance of spaces and I can’t find any discernable documentation on using Regex…

-- formattting the output doesn't help either...

Any guidance / help would be appreciated

Roderick




Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>