Skip to content

Instantly share code, notes, and snippets.

@missinglink
Last active January 4, 2017 13:39
Show Gist options
  • Select an option

  • Save missinglink/b1061ab7fe654ec35a8a0728b1868261 to your computer and use it in GitHub Desktop.

Select an option

Save missinglink/b1061ab7fe654ec35a8a0728b1868261 to your computer and use it in GitHub Desktop.
openaddresses - set the 'hash' column to be the line number
awk -F"," 'BEGIN { OFS = "," } FNR < 2 { print; next } {$11=sprintf("%.6d", NR); print}' test/functional/west26th/oa.csv > test/functional/west26th/foo.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment