I'm working with a table that I extracted from HTML, but the name field is actually 2 rows (one for name and one for ID)
This is what I have
(Get-Content C:\test\test.csv) |
Foreach-Object {$_ -replace "Assigned To", "Assigned To,ID"`
-replace ",,,ID: ", ""`
-replace "[0-9],,,", ""`
-replace ",`n", ","}
Set-Content C:\test\Test.txt
I'm running into two problems: When I run this in the powershell window, it seems to execute fine, but when I right clicked the saved script and execute, it says:
cmdlet Set-Content at command pipeline position 1
Supply values for the following parameters:
Value[0]:
I assume this has to do with the -replace "[0-9],,,", ""
Does anyone know how what I'm doing wrong there?