Skip to content

Instantly share code, notes, and snippets.

@kevinkirkup
Created September 7, 2017 01:12
Show Gist options
  • Save kevinkirkup/b7c00e3b1e2b5e03108aecaf9dac947f to your computer and use it in GitHub Desktop.
Save kevinkirkup/b7c00e3b1e2b5e03108aecaf9dac947f to your computer and use it in GitHub Desktop.
Remove new lines in quoted strings
# OSX
find . -iname "*.txt" -exec gawk -i inplace '!/"$/{sub(/$/,"\\n");printf "%s",$0;next}1' {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment