Replace blank characters from a file line by line
问题 I would like to be able to find all blanks from a CSV file and if a blank character is found on a line then should appear on the screen and I should be asked if I want to keep the entire line which contains that white space or remove it. Let's say the directory is C:\Cr\Powershell\test . In there there is one CSV file abc.csv . Tried doing it like this but in PowerShell ISE the $_.PSObject.Properties isn't recognized. $csv = Import-Csv C:\Cr\Powershell\test\*.csv | Foreach-Object { $_