fork download
  1. perl -nale '@F=reverse @F if($F[0]>$F[1]); $x=$F[0]." ".$F[1]; if(!$h{$x}){print $x;$h{$x}=1;}'
Success #stdin #stdout 0.02s 5348KB
stdin
1 2
2 1
1 2
2 3
3 2
2 3
2 4
stdout
1 2
2 3
2 4