Skip to content

Instantly share code, notes, and snippets.

@dspinellis
Created May 16, 2021 20:19
Show Gist options
  • Save dspinellis/1fecb8e5d4a5c0935da7747df0f9ca85 to your computer and use it in GitHub Desktop.
Save dspinellis/1fecb8e5d4a5c0935da7747df0f9ca85 to your computer and use it in GitHub Desktop.
Show lines (and color) endings that violate the Greek final-n omission rule
#!/bin/sh
#
# Show lines (and color) endings that violate the Greek final-n omission rule
# Exit with a 0 success error code if such lines were found
#
egrep -i --color '\<(αυτήν|την|δεν|μην) ([^κπτξψαεηιουωάέήίόύώϊϋΐΰμνγ]|μ[^π]|ν[^τ]|γ[^κ])'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment