Skip to content

Instantly share code, notes, and snippets.

@jonlabelle
jonlabelle / crlf.py
Last active May 26, 2025 09:04
Replace CRLF (windows) line endings with LF (unix) line endings in files.
#!/usr/bin/env python
"""Replace line breaks, from one format to another."""
from __future__ import print_function
import argparse
import glob
import os
import sys