Ignore:
Timestamp:
Jun 25, 2006, 4:41:57 AM (18 years ago)
Author:
andree
Message:

Replaced all occurrences of egrep with 'grep -E' and of fgrep with
'grep -F' in mondo.
egrep and fgrep are usually just script wrappers around grep these
days which means additional overhead compared to calling grep with the
relevant option. Also, it appears that egrep and fgrep have been
deprecated by POSIX some time ago.

File:
1 edited

Legend:

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

    r662 r681  
    520520    if (i < 0) {
    521521        sprintf(command,
    522                 "tail -n3 %s | fgrep -i \"%c\" | tail -n1 | awk '{print $0;}'",
     522                "tail -n3 %s | grep -Fi \"%c\" | tail -n1 | awk '{print $0;}'",
    523523                filename, '%');
    524524        strcpy(lastline,
Note: See TracChangeset for help on using the changeset viewer.