Ignore:
Timestamp:
Jan 3, 2006, 4:09:12 PM (15 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/restore-scripts/mondo/hack-lilo

    r30 r273  
    5454    newdev=`GetNewFstabMountpoint $dev`
    5555    if [ ! "$newdev" ] ; then
    56     col2=`cat $old_mountlist | grep "$dev " | cut -d' ' -f2`
    57     col1_new=`cat $new_mountlist | grep " $col2 " | cut -d' ' -f1`
     56    col2=`grep "$dev " $old_mountlist | cut -d' ' -f2`
     57    col1_new=`grep " $col2 " $new_mountlist | cut -d' ' -f1`
    5858    newdev="$col1_new"
    5959    if [ ! "$newdev" ] ; then
     
    6161    fi
    6262    fi
    63 #    old_fstab_line=`cat $new_fstab | grep "$dev"`
     63#    old_fstab_line=`grep "$dev" $new_fstab`
    6464    [ "$2" = "other" ] || echo -e -n "\t"
    6565    echo -e "$2=$newdev"
     
    135135ProcessLilo < $old_lilo >> $outfile
    136136chmod 600 $outfile
    137 cat $bootlistfile | sort | uniq > $bootlistfile
     137sort -u $bootlistfile -o $bootlistfile
    138138
    139139#------ disabled 12/10/01 (doesn't do anything anyway *g*)
Note: See TracChangeset for help on using the changeset viewer.