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-archive.c

    r908 r911  
    736736    strcpy(scratchdir, bkpinfo->scratchdir);
    737737    sprintf(tmp,
    738             "echo '%s' | tr -s ' ' '\n' | grep -x '/dev/.*' | tr -s '\n' ' ' | awk '{print $0\"\\n\";}'",
     738            "echo '%s' | tr -s ' ' '\n' | grep -E '^/dev/.*$' | tr -s '\n' ' ' | awk '{print $0\"\\n\";}'",
    739739            bkpinfo->exclude_paths);
    740740    strcpy(devs_to_exclude, call_program_and_get_last_line_of_output(tmp));
     
    38843884*/
    38853885        sprintf(tmp,
    3886                 "grep 'afio: ' %s | sed 's/afio: //' | grep -vx '/dev/.*' >> /tmp/changed.files",
     3886                "grep 'afio: ' %s | sed 's/afio: //' | grep -vE '^/dev/.*$' >> /tmp/changed.files",
    38873887                MONDO_LOGFILE);
    38883888        system(tmp);
    38893889
    38903890        sprintf(tmp,
    3891                 "grep 'star: ' %s | sed 's/star: //' | grep -vx '/dev/.*' >> /tmp/changed.files",
     3891                "grep 'star: ' %s | sed 's/star: //' | grep -vE '^/dev/.*$' >> /tmp/changed.files",
    38923892                MONDO_LOGFILE);
    38933893        system(tmp);
Note: See TracChangeset for help on using the changeset viewer.