Created
July 7, 2015 22:52
-
-
Save justgrimes/71fd98441d865714899a to your computer and use it in GitHub Desktop.
awk one liner for checking lines for quote mismatches (aka odd quote counts by line)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
awk -F'|' 'BEGIN{print "COUNT,", "LINE"}{print gsub(/"/,"") "," NR}' file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment