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

replaced sort | uniq with sort -u

Location:
branches/2.06/mondo/mondo/restore-scripts/mondo
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.