r.in.ascii file sizes

Ben Horner-Johnson ben at earth.nwu.edu
Tue Mar 30 18:49:05 EST 1999


Emacs should be able to load your file.  It'll take some time.  I usually
use it when the file is too big for vi (your tmp space is the limit of vi's
space).  Other methods (if you know what you want to change) would be to
use "sed" to change things and then redirect the output to another file name.

(sed can be dangerous if what you are editing in the header is also in the
file - global find/replace type problems).

If you know how big the header is, you can use "head -x file > file.head"
and take "x" number of lines off the top of the file.  Edit "file.head" with
vi and then use "sed 1,xd file >> file.head" to copy the rest of the file 
(after the unwanted header) onto the changed header file.  Then you could
remove the "file" or "mv file.head file" if you want to keep the same file
name.

Hope this helps...

Ben Horner-Johnson
ben at earth.nwu.edu



More information about the grass-user mailing list