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

replaced sort | uniq with sort -u

File:
1 edited

Legend:

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