Ignore:
Timestamp:
Nov 1, 2006, 7:46:51 PM (14 years ago)
Author:
Bruno Cornec
Message:
Further removal of all instances of grep -wx in code.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/common/libmondo-verify.c

    r543 r911  
    165165    log_msg(1, "Now scanning log file for 'afio: ' stuff");
    166166    sprintf(command,
    167             "grep \"afio: \" %s | sed 's/afio: //' | grep -vx \"/dev/.*\" >> %s",
     167            "grep \"afio: \" %s | sed 's/afio: //' | grep -vE '^/dev/.*$' >> %s",
    168168            stderr_fname, afio_found_changes);
    169169    log_msg(2, command);
     
    175175    log_msg(1, "Now scanning log file for 'star: ' stuff");
    176176    sprintf(command,
    177             "grep \"star: \" %s | sed 's/star: //' | grep -vx \"/dev/.*\" >> %s",
     177            "grep \"star: \" %s | sed 's/star: //' | grep -vE '^/dev/.*$' >> %s",
    178178            stderr_fname, afio_found_changes);
    179179    log_msg(2, command);
     
    11491149            (int) (random() % 32767));
    11501150    sprintf(tmp,
    1151             "grep -x \"%s:.*\" %s | cut -d'\"' -f2 | sort -u | awk '{print \"/\"$0;};' | tr -s '/' '/' | grep -v \"(total of\" | grep -v \"incheckentry.*xwait\" | grep -vx \"/afio:.*\" | grep -vx \"dev/.*\"  > %s",
     1151            "grep -E '^%s:.*$' %s | cut -d'\"' -f2 | sort -u | awk '{print \"/\"$0;};' | tr -s '/' '/' | grep -v \"(total of\" | grep -v \"incheckentry.*xwait\" | grep -vE '^/afio:.*$' | grep -vE '^dev/.*$'  > %s",
    11521152            (bkpinfo->use_star) ? "star" : "afio", MONDO_LOGFILE,
    11531153            changed_files_fname);
Note: See TracChangeset for help on using the changeset viewer.