Nopunc

Strip punctuation from stdin

#!/usr/bin/env python3
import sys
for line in sys.stdin:
    sys.stdout.write(
        .join(c for c in line if c.isalnum() or c.isspace())
    )

Unknown's avatar

About Linuxgal

Need a spiritual home? Consider joining us at Mary Queen of the Universe Latter-day Buddhislamic Free Will Christian UFO Synagogue of Vishnu
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a comment