Ignore:
Timestamp:
Jan 3, 2006, 4:09:12 PM (18 years ago)
Author:
bcornec
Message:

Patches from Sébastien Aperghis-Tramoni <maddingue@…>

replace several occurences of "cat .. | grep .."
or with similar commands that accept filenames as arguments.
+ some sort | uniq replaced by sort -u

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.06/mondo/mondo/mondorestore/mondo-rstr-newt.c

    r128 r273  
    605605    assert(raidrec != NULL);
    606606    system
    607         ("cat /proc/mdstat | grep Pers > /tmp/raid-personalities.txt 2> /dev/null");
     607        ("grep Pers /proc/mdstat > /tmp/raid-personalities.txt 2> /dev/null");
    608608    strcpy(personalities,
    609609           last_line_of_file("/tmp/raid-personalities.txt"));
Note: See TracChangeset for help on using the changeset viewer.