Created
January 28, 2014 08:17
-
-
Save mywarr/8663897 to your computer and use it in GitHub Desktop.
textfile processing notes sed etc..
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
remove empty lines | |
sed -i '/^[[:space:]]$/d' *.md | |
convert crlf to cr aka dos to unix with tr command. | |
for f (*.md) {tr -d '\r' < $f > $f_Without_CR.md} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment