[GRASS-SVN] r39638 - grass/branches/releasebranch_6_4/scripts/m.proj

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 28 10:35:36 EDT 2009


Author: neteler
Date: 2009-10-28 10:35:34 -0400 (Wed, 28 Oct 2009)
New Revision: 39638

Modified:
   grass/branches/releasebranch_6_4/scripts/m.proj/m.proj
Log:
fix delimitors in output

Modified: grass/branches/releasebranch_6_4/scripts/m.proj/m.proj
===================================================================
--- grass/branches/releasebranch_6_4/scripts/m.proj/m.proj	2009-10-28 10:10:49 UTC (rev 39637)
+++ grass/branches/releasebranch_6_4/scripts/m.proj/m.proj	2009-10-28 14:35:34 UTC (rev 39638)
@@ -230,10 +230,10 @@
 #   cs2cs | sed -e 's/d/:/g' -e "s/'/:/g"  -e 's/"//g'
 
 if [ -z "$outfile" ] ; then
-   cat "$infile" | tr "$fs" ' ' | cs2cs $OUTFMT $IN_PROJ +to $OUT_PROJ
+   cat "$infile" | tr "$fs" ' ' | cs2cs $OUTFMT $IN_PROJ +to $OUT_PROJ | tr -s "\t" "$GIS_OPT_FS" | tr -s " " "$GIS_OPT_FS"
    EXITCODE=$?
 else
-   cat "$infile" | tr "$fs" ' ' | cs2cs $OUTFMT $IN_PROJ +to $OUT_PROJ > "$outfile"
+   cat "$infile" | tr "$fs" ' ' | cs2cs $OUTFMT $IN_PROJ +to $OUT_PROJ | tr -s "\t" "$GIS_OPT_FS" | tr -s " " "$GIS_OPT_FS" > "$outfile"
    EXITCODE=$?
 
    #### check if transform REALLY worked (e.g. bogus output if grid file not found)



More information about the grass-commit mailing list