Skip to content

Instantly share code, notes, and snippets.

@protectroot-com
Last active January 25, 2023 02:36
strip out numbers. Just display the letters.
awk '{gsub(/[^a-zA-Z]/,"")}1'
keep spaces
cat file.txt | awk '{gsub(/[^a-zA-Z ]/,"")}1'
keep spaces and dots
cat file.txt | awk '{gsub(/[^a-zA-Z .]/,"")}1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment