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/make-me-bootable

    r196 r273  
    1919HAVE_ACTIVE="false"
    2020for i in `cat $1 | tr -s '\t' ' ' | cut -d' ' -f1 | grep -v "/dev/fd" | grep -v "none" | grep -v "#"` ; do
    21     mountpt=`cat $1 | grep "$i " | tr -s '\t' ' ' | cut -d' ' -f2`
    22     format=`cat $1 | grep "$i " | tr -s '\t' ' ' | cut -d' ' -f3`
     21    mountpt=`grep "$i " $1 | tr -s '\t' ' ' | cut -d' ' -f2`
     22    format=`grep "$i " $1 | tr -s '\t' ' ' | cut -d' ' -f3`
    2323    drive=`echo $i | sed -e 's/[0-9]*$//' -e 's/\([0-9]\)p$/\1/'`
    2424    partno=`echo $i | sed -e 's/^.*[^0-9]\([0-9]*\)$/\1/'`
Note: See TracChangeset for help on using the changeset viewer.