Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jonlabelle
jonlabelle / crlf.py
Last active March 12, 2024 05:44
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