Changeset 277


Ignore:
Timestamp:
Jan 3, 2006, 5:06:12 PM (13 years ago)
Author:
bcornec
Message:

replaced sort | uniq with sort -u

Location:
branches/2.06
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/2.06/mindi/mindi

    r275 r277  
    808808    echo -en "$DONE\nMaking complete dependency list"
    809809
    810     tr -s '/' '/' < $tempfile | sort | uniq > $tempfile.new
     810    tr -s '/' '/' < $tempfile | sort -u > $tempfile.new
    811811    mv -f $tempfile.new $tempfile
    812812    > $outfile.pre
     
    819819        cat $tempdepfile >> $outfile.pre
    820820#        echo "$fname ----> dependencies:-" >> $LOGFILE
    821 #        cat $tempdepfile | tr -s '/' '/' | sort | uniq >> $LOGFILE
     821#        cat $tempdepfile | tr -s '/' '/' | sort -u >> $LOGFILE
    822822#        echo -en "(end of deplist of $fname)\n\n" >> $LOGFILE
    823823        rm -f $tempdepfile
     
    13151315        mount | fgrep "$i " > /dev/null 2> /dev/null && Die "Sorry, $i is already mounted! CANNOT DO IMAGEDEV on it if it's mounted."
    13161316    done
    1317     [ "$IMAGE_DEVS" != "" ] && all_partitions="`echo "$all_partitions $IMAGE_DEVS" | tr ' ' '\n' | sort | uniq | tr '\n ' ' '`"
     1317    [ "$IMAGE_DEVS" != "" ] && all_partitions="`echo "$all_partitions $IMAGE_DEVS" | tr ' ' '\n' | sort -u | tr '\n ' ' '`"
    13181318    printf "        %-15s %-15s %-15s %-15s\n" DEVICE MOUNTPOINT FORMAT "SIZE (MB)"
    13191319    for c_p in $all_partitions ; do
     
    25712571        fi
    25722572    fi
    2573     possible_kernels=`echo "$possible_kernels" | tr -s ' ' '\n' | sort | uniq | tr '\n' ' '`
     2573    possible_kernels=`echo "$possible_kernels" | tr -s ' ' '\n' | sort -u | tr '\n' ' '`
    25742574    noof_kernels=`CountItemsIn "$possible_kernels"`
    25752575    if [ "$noof_kernels" -eq "0" ] ; then
  • branches/2.06/mondo/mondo/mondorestore/mondo-rstr-compare.c

    r275 r277  
    376376    if (length_of_file(logfile) > 5) {
    377377        sprintf(command,
    378                 "sed s/': \\\"'/\\|/ %s | sed s/'\\\": '/\\|/ | cut -d'|' -f2 | sort | uniq | grep -vx \"dev/.*\" >> /tmp/changed.txt",
     378                "sed s/': \\\"'/\\|/ %s | sed s/'\\\": '/\\|/ | cut -d'|' -f2 | sort -u | grep -vx \"dev/.*\" >> /tmp/changed.txt",
    379379                logfile);
    380380        system(command);
  • branches/2.06/mondo/mondo/restore-scripts/mondo/compare-me

    r273 r277  
    262262
    263263grep -v -x "Files [^:]*:-" /tmp/compare-me.log \
    264 | sort | uniq > /tmp/suspect.files
     264| sort -u > /tmp/suspect.files
    265265
    266266noof_lines=`grep -n "" /tmp/suspect.files | tail -n 1 | cut -d':' -f1`
  • branches/2.06/mondo/mondo/restore-scripts/mondo/compare-subroutine-me

    r30 r277  
    6262        if [ "`cat /tmp/mck.log`" != "" ] ; then
    6363        echo "Files which, according to md5sum, have changed:-" >> /tmp/compare-me.log
    64         cat /tmp/mck.log
    65         cat /tmp/mck.log >> /tmp/compare-me.log
     64        cat /tmp/mck.log | tee -a /tmp/compare-me.log
    6665        else
    6766        LogIt "Unable to run mondo-checksum."
     
    7574if [ "`cat /tmp/afio.log`" != "" ] ; then
    7675    echo "Files reported by afio as changed:-" > /tmp/afio.log.mashed
    77     cat /tmp/afio.log | sed s/'afio: "'/'|'/ | sed s/'": '/'|'/ \
     76    sed s/'afio: "'/'|'/ /tmp/afio.log | sed s/'": '/'|'/ \
    7877| cut -d'|' -f2 | gawk '{ if (substr($0,1,1)!="/") {print"/"$0;} \
    79 else {print $0;};};' | sort | uniq >> /tmp/afio.log.mashed
    80     cat /tmp/afio.log.mashed
    81     cat /tmp/afio.log.mashed >> /tmp/compare-me.log
     78else {print $0;};};' | sort -u >> /tmp/afio.log.mashed
     79    cat /tmp/afio.log.mashed | tee -a /tmp/compare-me.log
    8280fi
    8381
  • branches/2.06/mondo/mondo/restore-scripts/mondo/stablilo-me

    r273 r277  
    9393    cut -d' ' -f1 /tmp/mountlist.txt \
    9494| sed s/[0-9]// | sed s/[0-9]// \
    95 | sort | uniq | head -n 1
     95| sort -u | head -n 1
    9696}
    9797
  • branches/2.06/mondo/mondo/xmondo/xmondorestore.cpp

    r273 r277  
    289289    int curline = 0;
    290290    FILE *fin  = fopen (QString ("%1.FILT").arg (g_filelist_full).ascii(), "r");
    291     FILE *fout = popen (QString ("sort | uniq > %1").arg (g_filelist_full).ascii(), "w");
     291    FILE *fout = popen (QString ("sort -u > %1").arg (g_filelist_full).ascii(), "w");
    292292
    293293    if (!(fin && fout)) {
Note: See TracChangeset for help on using the changeset viewer.