Changeset 30437


Ignore:
Timestamp:
Mar 3, 2008, 2:15:38 AM (16 years ago)
Author:
1gray
Message:

scripts/g.mlist/g.mlist (do_list): Fixed `pattern=-FOO' to work with
-r'; reduced off one grep'; use grep .' instead of grep -v '$;
more Shell quoting for the sake of a better coding style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • grass/trunk/scripts/g.mlist/g.mlist

    r24791 r30437  
    6767    fi
    6868
    69     g.list type=$type mapset=$mapset \
    70         | grep -v '^-\+$' \
    71         | grep -v "files available" \
     69    g.list type="$type" mapset="$mapset" \
     70        | grep -vE '^-+$|files available' \
    7271        | grep -vi "mapset" \
    7372        | sed 's/  */\
    7473/g' \
    75         | grep -v '^$' \
    76         | grep "$search" \
     74        | grep . \
     75        | grep -- "$search" \
    7776        | sort \
    7877        | sed -e "s/$/$MAPSET/"
Note: See TracChangeset for help on using the changeset viewer.