Tente:
$ echo 28fe2baadbe8da32ed0b99c69b11c01b2d141bc5b732b81e0960086de52fc891 |
awk '{sub(/\r/,"")} length == 64 && /^[[:xdigit:]]+$/'
28fe2baadbe8da32ed0b99c69b11c01b2d141bc5b732b81e0960086de52fc891
ou use perl
.
Incluir nova linha:
perl -ne 'print if length == 64 and /^[[:xdigit:]]+$/'
Excluir nova linha:
perl -nle 'print if length == 64 and /^[[:xdigit:]]+$/'