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/grub-MR

    r196 r273  
    6464    BOOTPATHNAME=""
    6565    for sz in /boot / ; do
    66     bootpart=`cat $2 | grep " $sz " | cut -d' ' -f1 | head -n1`
     66    bootpart=`grep " $sz " $2 | cut -d' ' -f1 | head -n1`
    6767    [ "$bootpart" ] && [ -e "/mnt/RESTORING/$bootpart" ] && break
    6868    done
     
    164164if echo $bootpart | grep "/md" > /dev/null ; then
    165165    base=`basename $bootpart`
    166     line=`cat /proc/mdstat | grep $base | head -n1`
     166    line=`grep $base /proc/mdstat | head -n1`
    167167    echo "mbrpart was $mbrpart"
    168168    mbrpart=`parted2fdisk -l | grep /dev/ | head -n1 | tr ':' ' ' \
Note: See TracChangeset for help on using the changeset viewer.