benoitbalon posteets tagged doublons,shell  [ Profile ]

Sort by: Date / Title /

  1. 1 year ago and saved by 1 other
    1. # Permet de dresser la liste des lignes d'un fichier, triees, en supprimant toutes les lignes qui font doublon
    2.  
    3. ficorig="fichier_origine";ficdest="fichier_destination";sort -o ${ficorig}.sort ${ficorig};while read line;do if test "$line" != "$sauve";then sauve=`echo $line`;echo $line >> $ficdest;fi;done < ${ficorig}.sort;\rm ${ficorig}.sort

First / Previous / Next / Last / Page 1 of 1 (1 posteets)