Skip to content

Instantly share code, notes, and snippets.

@jmatsu
Last active November 11, 2015 14:46
Show Gist options
  • Save jmatsu/4f2ea8eca35cc678b2a7 to your computer and use it in GitHub Desktop.
Save jmatsu/4f2ea8eca35cc678b2a7 to your computer and use it in GitHub Desktop.
便利なやつ for MacOSX

git rev-list HEAD --count

CRLF -> LF

cat "$FILE"|col -b > "$FILE2"

e.g. cp -a "$FILE" "${FILE}.backup"; cat "${FILE}.backup"|col -b > "$FILE"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment