Move
This commit is contained in:
14
AzureRoleAnalyzingScripts/clean_csv.ps1
Normal file
14
AzureRoleAnalyzingScripts/clean_csv.ps1
Normal file
@@ -0,0 +1,14 @@
|
||||
# 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"
|
||||
Reference in New Issue
Block a user