Skip to content

Instantly share code, notes, and snippets.

View jwrightmm's full-sized avatar

Josh Wright jwrightmm

  • Philadelphia, PA
View GitHub Profile
#!/usr/bin/env python3
"""
Script: clean_sql_dump.py
Reads a SQL dump file, removes emojis and unwanted control characters,
converts null bytes to MySQL-friendly '\\0', and writes a cleaned SQL file.
"""
import re
import sys
import argparse