Skip to content

Instantly share code, notes, and snippets.

@vishichoudhary
Created July 12, 2019 11:50
Show Gist options
  • Save vishichoudhary/77a4b9dee60a83cc0a8a51bdc354912b to your computer and use it in GitHub Desktop.
Save vishichoudhary/77a4b9dee60a83cc0a8a51bdc354912b to your computer and use it in GitHub Desktop.
Command to fetch a single column from csv
awk -F "\"*,\"*" '{print $2}' pincodes.csv
@vishichoudhary
Copy link
Author

$2 is column no and pincodes.csv is file name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment