Ignore:
Timestamp:
Jan 3, 2006, 4:59:29 PM (15 years ago)
Author:
bcornec
Message:

more cat commands removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.06/mondo/mondo/restore-scripts/mondo/hack-lilo

    r273 r275  
    1515GetOldFstabMountpoint() {
    1616    local res
    17     res=`cat $old_fstab | tr -s '\t' ' ' | grep "$1" | cut -d' ' -f2`
     17    res=`tr -s '\t' ' ' < $old_fstab | grep "$1" | cut -d' ' -f2`
    1818#    echo "old_fstab = $old_fstab" >> /dev/stderr
    1919    if [ "$res" = "" ] ; then
    2020#   echo "OK, resB" >> /dev/stderr
    21     res=`cat $old_mountlist | tr -s '\t' ' ' | grep " $1 " | cut -d' ' -f1`
     21    res=`tr -s '\t' ' ' < $old_mountlist | grep " $1 " | cut -d' ' -f1`
    2222    fi
    2323    echo "$res"
     
    3434    old_mountpoint=`GetOldFstabMountpoint $1`
    3535#    echo "old_mountpoint = $old_mountpoint" >> /dev/stderr
    36     new_mountpoint=`cat $new_mountlist | tr -s '\t' ' ' | grep " $old_mountpoint" | cut -d' ' -f1`
     36    new_mountpoint=`tr -s '\t' ' ' < $new_mountlist | grep " $old_mountpoint" | cut -d' ' -f1`
    3737    if [ "$new_mountpoint" = "" ] ; then
    38     mtpt=`cat $new_mountlist | tr -s '\t' ' ' | grep " $old_mountpoint " | cut -d' ' -f2`
    39     dev=`cat $new_mountlist | tr -s '\t' ' ' | grep " $mtpt " | cut -d' ' -f1`
     38    mtpt=`tr -s '\t' ' ' < $new_mountlist | grep " $old_mountpoint " | cut -d' ' -f2`
     39    dev=`tr -s '\t' ' ' < $new_mountlist | grep " $mtpt " | cut -d' ' -f1`
    4040#   echo "NEW_MP (A) = $dev" >> /dev/stderr
    4141#    else
Note: See TracChangeset for help on using the changeset viewer.