Files
PSScripts/AzureRoleAnalyzingScripts/clean_csv.ps1
robbwilcox 99032730b5 Move
2024-10-05 12:27:45 -05:00

14 lines
440 B
PowerShell

# Parameters
$inputFilePath = "./QueryResult.csv"
$outputFilePath = "./CleanResults.csv"
# Read the content of the file
$content = Get-Content -Path $inputFilePath -Raw
# Remove all double quotes
$contentWithoutQuotes = $content -replace '"', ''
# Write the modified content to a new file
$contentWithoutQuotes | Set-Content -Path $outputFilePath -NoNewline
Write-Output "Quotes removed. New file saved as: $outputFilePath"