Skip to content

Instantly share code, notes, and snippets.

@dpirotte
Created December 30, 2010 17:34
Show Gist options
  • Select an option

  • Save dpirotte/760032 to your computer and use it in GitHub Desktop.

Select an option

Save dpirotte/760032 to your computer and use it in GitHub Desktop.
Find the number of tabs on each line of a huge file.
awk 'BEGIN { FS = "\t" } ; { print NF-1 }' huge_file.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment