Skip to content

Instantly share code, notes, and snippets.

@mywarr
Created January 28, 2014 08:17

Revisions

  1. mywarr created this gist Jan 28, 2014.
    5 changes: 5 additions & 0 deletions gistfile1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    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}