Help for this page

Select Code to Download


  1. or download this
    
    use strict;
    ...
    # finally, hardlink the files in each group:
    reduce { system qq( ln "$a" "$b" ); $b } @$_ for @a;
    
  2. or download this
    map { reduce { system qq( ln "$a" "$b" ); $b } @$_ }
    
    ...
    partition_by_calculated_key { -s $_ } 
    
    [ grep { ! -l $_ } grep { ! -d $_ } @files ]