- Timestamp:
- Jan 3, 2006, 5:06:47 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mindi/mindi
r276 r278 808 808 echo -en "$DONE\nMaking complete dependency list" 809 809 810 tr -s '/' '/' < $tempfile | sort | uniq> $tempfile.new810 tr -s '/' '/' < $tempfile | sort -u > $tempfile.new 811 811 mv -f $tempfile.new $tempfile 812 812 > $outfile.pre … … 819 819 cat $tempdepfile >> $outfile.pre 820 820 # echo "$fname ----> dependencies:-" >> $LOGFILE 821 # cat $tempdepfile | tr -s '/' '/' | sort | uniq>> $LOGFILE821 # cat $tempdepfile | tr -s '/' '/' | sort -u >> $LOGFILE 822 822 # echo -en "(end of deplist of $fname)\n\n" >> $LOGFILE 823 823 rm -f $tempdepfile … … 1315 1315 mount | fgrep "$i " > /dev/null 2> /dev/null && Die "Sorry, $i is already mounted! CANNOT DO IMAGEDEV on it if it's mounted." 1316 1316 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 ' ' '`" 1318 1318 printf " %-15s %-15s %-15s %-15s\n" DEVICE MOUNTPOINT FORMAT "SIZE (MB)" 1319 1319 for c_p in $all_partitions ; do … … 2571 2571 fi 2572 2572 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' ' '` 2574 2574 noof_kernels=`CountItemsIn "$possible_kernels"` 2575 2575 if [ "$noof_kernels" -eq "0" ] ; then -
trunk/mondo/mondo/mondorestore/mondo-rstr-compare.c
r276 r278 378 378 if (length_of_file(logfile) > 5) { 379 379 sprintf(command, 380 "sed s/': \\\"'/\\|/ %s | sed s/'\\\": '/\\|/ | cut -d'|' -f2 | sort | uniq| grep -vx \"dev/.*\" >> /tmp/changed.txt",380 "sed s/': \\\"'/\\|/ %s | sed s/'\\\": '/\\|/ | cut -d'|' -f2 | sort -u | grep -vx \"dev/.*\" >> /tmp/changed.txt", 381 381 logfile); 382 382 system(command); -
trunk/mondo/mondo/restore-scripts/mondo/compare-me
r274 r278 262 262 263 263 grep -v -x "Files [^:]*:-" /tmp/compare-me.log \ 264 | sort | uniq> /tmp/suspect.files264 | sort -u > /tmp/suspect.files 265 265 266 266 noof_lines=`grep -n "" /tmp/suspect.files | tail -n 1 | cut -d':' -f1` -
trunk/mondo/mondo/restore-scripts/mondo/compare-subroutine-me
r30 r278 62 62 if [ "`cat /tmp/mck.log`" != "" ] ; then 63 63 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 66 65 else 67 66 LogIt "Unable to run mondo-checksum." … … 75 74 if [ "`cat /tmp/afio.log`" != "" ] ; then 76 75 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/'": '/'|'/ \ 78 77 | 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 78 else {print $0;};};' | sort -u >> /tmp/afio.log.mashed 79 cat /tmp/afio.log.mashed | tee -a /tmp/compare-me.log 82 80 fi 83 81 -
trunk/mondo/mondo/restore-scripts/mondo/stablilo-me
r274 r278 93 93 cut -d' ' -f1 /tmp/mountlist.txt \ 94 94 | sed s/[0-9]// | sed s/[0-9]// \ 95 | sort | uniq| head -n 195 | sort -u | head -n 1 96 96 } 97 97
Note:
See TracChangeset
for help on using the changeset viewer.