authd/bin/migration-filter.awk

20 lines
242 B
Awk
Raw Normal View History

#!/usr/bin/gawk -f
BEGIN {
OFS="\t"
should_print = 0
}
$1 ~ /^[-_ %ùÙêÊçÇéÉàÀ+a-zA-Z0-9'@.,;&]+$/ {
should_print = 1
}
should_print == 0 {
print "INVALID:", $1, $2
}
should_print == 1 {
print $1 "\t" $2
should_print = 0
}