Last active
April 18, 2016 03:53
-
-
Save jcataluna/0dc80c86a6d88c3946e261937bdd0c9c to your computer and use it in GitHub Desktop.
Finally a sed expression to remove ALL spaces and CR
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
find . -type f -print0 | xargs -0 sed -i -e "s/_id/id/g" | |
find . -type f -print0 | xargs -0 sed -i -e "s/\s//g" | |
find . -type f -print0 | xargs -0 sed -i -e :a -e '/$/N; s/[\r\n]//; ta;' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment