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

    r251 r273  
    30983098    fatal_error("This will fail");
    30993099    sprintf(command,
    3100             "cat %s | grep -x \"%s.*\" > %s",
    3101             g_filelist_full, restore_this_directory, g_filelist_full);
     3100            "grep -x \"%s.*\" %s > %s",
     3101            restore_this_directory, g_filelist_full, g_filelist_full);
    31023102    if (system(command)) {
    31033103        retval++;
     
    31083108    fatal_error("This will fail");
    31093109    sprintf(command,
    3110             "cat %s | grep -x \"%s.*\" > %s",
    3111             g_biggielist_txt, restore_this_directory, g_biggielist_txt);
     3110            "grep -x \"%s.*\" %s > %s",
     3111            restore_this_directory, g_biggielist_txt, g_biggielist_txt);
    31123112    if (system(command)) {
    31133113        log_msg(1,
Note: See TracChangeset for help on using the changeset viewer.