[GRASS-SVN] r42845 -
grass/branches/releasebranch_6_4/scripts/v.rast.stats
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jul 19 09:22:45 EDT 2010
Author: hamish
Date: 2010-07-19 13:22:44 +0000 (Mon, 19 Jul 2010)
New Revision: 42845
Modified:
grass/branches/releasebranch_6_4/scripts/v.rast.stats/v.rast.stats
Log:
use SUS compliant grep options
Modified: grass/branches/releasebranch_6_4/scripts/v.rast.stats/v.rast.stats
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.rast.stats/v.rast.stats 2010-07-19 13:08:06 UTC (rev 42844)
+++ grass/branches/releasebranch_6_4/scripts/v.rast.stats/v.rast.stats 2010-07-19 13:22:44 UTC (rev 42845)
@@ -199,7 +199,7 @@
#check if DBF driver used, in this case cut to 10 chars col names:
DBFDRIVER=0
v.db.connect -g "$VECTOR" fs=";" | grep -w "^$GIS_OPT_LAYER" | \
- cut -d';' -f5 | grep -i dbf --quiet
+ cut -d';' -f5 | grep -i dbf -q
if [ $? -eq 0 ] ; then
DBFDRIVER=1
else
@@ -243,7 +243,7 @@
CURRCOLUMN="${COLPREFIX}_${i}"
fi
v.info -c $VECTOR --quiet | sed 's+^+|+g' | sed 's+$+|+g' | \
- grep "|$CURRCOLUMN|" --quiet
+ grep "|$CURRCOLUMN|" -q
if [ $? -eq 0 ] ; then
if [ $GIS_FLAG_C -ne 1 ] ; then
g.message -e "Cannot create column <$CURRCOLUMN> (already present). \
More information about the grass-commit
mailing list