Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save manhdaovan/393c732a02e6ce2e2488099c22cc98f5 to your computer and use it in GitHub Desktop.
Save manhdaovan/393c732a02e6ce2e2488099c22cc98f5 to your computer and use it in GitHub Desktop.
Extract csv content by column(s)
$awk -F "\"*,\"*" '{b=$2","$3","$4","$5","$6; print b}' /path/to/file.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment