Changeset 277 in MondoRescue for branches/2.06/mondo
- Timestamp:
- Jan 3, 2006, 5:06:12 PM (18 years ago)
- Location:
- branches/2.06/mondo/mondo
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.06/mondo/mondo/mondorestore/mondo-rstr-compare.c
r275 r277 376 376 if (length_of_file(logfile) > 5) { 377 377 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", 379 379 logfile); 380 380 system(command); -
branches/2.06/mondo/mondo/restore-scripts/mondo/compare-me
r273 r277 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` -
branches/2.06/mondo/mondo/restore-scripts/mondo/compare-subroutine-me
r30 r277 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 -
branches/2.06/mondo/mondo/restore-scripts/mondo/stablilo-me
r273 r277 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 -
branches/2.06/mondo/mondo/xmondo/xmondorestore.cpp
r273 r277 289 289 int curline = 0; 290 290 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"); 292 292 293 293 if (!(fin && fout)) {
Note:
See TracChangeset
for help on using the changeset viewer.