Skip to content

Instantly share code, notes, and snippets.

@adrianbiro
Last active May 28, 2022 07:55
Show Gist options
  • Save adrianbiro/858331f7cb4aa9e58c882427ebd1b79e to your computer and use it in GitHub Desktop.
Save adrianbiro/858331f7cb4aa9e58c882427ebd1b79e to your computer and use it in GitHub Desktop.
This removes lines marked with the hash from the CSV file, cleane-up quotes and generates the TSV file. Then You can easily read this, in plain text editor.
awk -F"," '{gsub("\"", "", $0); gsub(",", "\t", $0); if ($1 !~ /#\s.*/) print }' report.csv > clean_report.tsv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment