s.in.ascii

----------
X-Sun-Data-Type: text
X-Sun-Data-Description: text
X-Sun-Data-Name: text
X-Sun-Content-Lines: 39

From grass-lists-owner@max.cecer.army.mil Tue Feb 2 16:11:45 1993
Date: Tue, 2 Feb 93 17:02:06 EST
From: ngreeley@hanover-crrel.army.mil (Nancy Greeley)
Sender: lists-owner@max.cecer.army.mil
Reply-To: grassu-list@max.cecer.army.mil
To: grassu-list@amber.cecer.army.mil
Subject: s.in.ascii
Content-Length: 654

I have imported into
GRASS a sites file that has eastings, northings, and an elevation value.
After running s.in.ascii there is also a pipe between each of these.
I would like to have a pound sign, "#", before the elevation value as well
(for use with s.menu option 6-convert site map to raster map where each
#n is a category value).

Questions:
Is there any way to add the # sign (some way that is not docmented or that
I have missed) while running s.in.ascii?
Is it possible to do it in the s.menu option 5-edit function?

I am not an awk or sed user, although I am now sitting down with the
books and beginning...

Thank you for your help

-Nancy

Well, awk will be a easy way to do this.

Try following commands under your GRASS prompt:

cd $LOCATION/site_lists

awk -F\| '{print $1"|"$2"|#"$3}' your_site_file > new_site_file

----------
X-Sun-Data-Type: default
X-Sun-Data-Description: default
X-Sun-Data-Name: signature2
X-Sun-Content-Lines: 14

        , /=================================\
       (-O-O-) | Song Wang |
       | ^ | / | |
        \(=)/ / | CAST |
      ___|_|___ __/ | 12 Ozark Hall |
     / \V/ \ ( _) | University of Arkansas |
    / /| .+-|\ \/ / | Fayetteville, AR 72701 |
   | | | . | \_/ | ********************************* |
----------------------- | TEL: (501) 575 - 6159 |
\ CAST/NCRI / | FAX: (501) 575 - 3846 |
  \___________________/ | E-mail: wang@cast.uark.edu |
   | | | (Internet) |
   | | \=================================/