Um perl-oneliner:
perl -nae 'undef %saw ; next if $. == 1; shift @F; next if grep { $_ < 50 or $saw{$_}++ } @F; print ' input.txt
Isso basicamente se traduz em:
#!/usr/bin/env perl
use strict;
while (<>) {
my @F = split(' '); # split the current line
my %seen;
next if $. == 1; # skip the heading
shift @F; # ignore first element
next if grep { $_ < 50 or $seen{$_}++ } @F; # ignore lines with
# duplicate entries and
# entries less than 50
print; # print current line
}