PowerShell v4- got an error when trying to convert output to TSV indicating that Convert-CSV is not a valid cmdlet. I believe the correct cmdlet should be ConvertTo-CSV instead. Changing in my fork and sending a pull request. Below is the snippet:
# save the data
switch -Wildcard ($OutputFormat) {
...
"*tsv" {
$Outfile = $Outfile + ".tsv"
# LogParser can't handle quoted tab separated values, so we'll strip the quotes.
$Recpt | Convert-Csv -NoTypeInformation -Delimiter "`t" | ForEach-Object { $_ -replace "`"" } | Set-Content -Encoding $Encoding $Outfile
}
...
PowerShell v4- got an error when trying to convert output to TSV indicating that
Convert-CSV
is not a valid cmdlet. I believe the correct cmdlet should beConvertTo-CSV
instead. Changing in my fork and sending a pull request. Below is the snippet: