Help for this page

Select Code to Download


  1. or download this
    my $output_pipe = "|sort -n -t, -k3,4 | uniq > $tmpfile";
    open(OUTFILE,$output_pipe) || die "could not open file $output_pipe fo
    +r output: $!";
    
  2. or download this
    my $output_pipe = "|sort -n -t, -k3,4 -u > $tmpfile";
    
  3. or download this
    $ cat test.dat
    1,1
    ...
    2,2
    2,1
    1,1
    
  4. or download this
    $ sort -n -t, -k1,2 test.dat | uniq
    1,1
    ...
    2,4
    
    That's good.
    
  5. or download this
    $ sort -n -t, -k1,2 -u test.dat
    
    ...
    2,1
    
    Not what I expected.