Changeset 911 in MondoRescue for branches/stable/mindi/analyze-my-lvm


Ignore:
Timestamp:
Nov 1, 2006, 7:46:51 PM (17 years ago)
Author:
Bruno Cornec
Message:
Further removal of all instances of grep -wx in code.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/analyze-my-lvm

    r850 r911  
    9494    allocation=`GetValueFromField $fname "LV Size"`
    9595    [ ! "`echo "$allocation" | grep "[k,m,g]"`" ] && allocation="$allocation"m
    96     if echo "$allocation" | grep -x ".*g" > /dev/null 2> /dev/null ; then
     96    if echo "$allocation" | grep -E '^.*g$' > /dev/null 2> /dev/null ; then
    9797        val=`echo "$allocation" | sed s/g//`
    9898        allocation=`echo "$val" | awk '{c=$1; printf "%d", c*1024;}'`m
     
    169169
    170170ListLvmDrivesAndPartitions() {
    171     $LVMCMD vgdisplay -v 2> /dev/null |grep "PV Name" | sed 's/(#)//' | awk '{print $3}'
     171    $LVMCMD vgdisplay -v 2> /dev/null | grep "PV Name" | sed 's/(#)//' | awk '{print $3}'
    172172}
    173173
Note: See TracChangeset for help on using the changeset viewer.