Created
September 7, 2017 01:12
-
-
Save kevinkirkup/b7c00e3b1e2b5e03108aecaf9dac947f to your computer and use it in GitHub Desktop.
Remove new lines in quoted strings
This file contains hidden or 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
# 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