Skip to content

Instantly share code, notes, and snippets.

@ranvotu
ranvotu / cleanocr
Last active January 11, 2026 09:23 — forked from tongoclinh/regex_cleanup.sh
Regex cleanup for OCR result.
#!/bin/bash
# prerequisite: git
# CLEAN-OCR
# Remove Underscores and empty lines
# These underscores rendered by google when doing images ocr
sed -i 's/________________//g; /^$/d' $1