Dear Netters,
is there any way to search ?through the grassu-list archives at
the max.cecer.army.mil site?
Many problems haunting a grass novice were probably grilled there
zillions of times.
Cheerio, Ania
Hi Ania,
There's no really user-friendly way, but the following works:
1) Get the archive files from the moon and put them in one large file
2) Use UNIX shell commands to search the file, eg:
cat <file>|grep ubj|sort > tmpfile (to get sorted list of subject lines)
vi <file> and use pattern-searching capability (to search for
subjects of interest)
you can also assign line numbers to <file> to facilitate searching...
3) In my Grass Beginner's Manual I have tried to summarize most of the
discussions on grassu-list. You can get it off moon if you don't already
have it.
P. Martijn van Leusen
Institute of Prehistory, University of Amsterdam martijn@scanner.frw.uva.nl
On Fri, 12 Aug 1994, Ania Oldak wrote:
Dear Netters,
is there any way to search ?through the grassu-list archives at
the max.cecer.army.mil site?
Many problems haunting a grass novice were probably grilled there
zillions of times.
Cheerio, Ania
In article <199408120533.AAA13517@max.cecer.army.mil> grassu-list@max.cecer.army.mil writes:
Dear Netters,
is there any way to search ?through the grassu-list archives at
the max.cecer.army.mil site?
Many problems haunting a grass novice were probably grilled there
zillions of times.
Cheerio, Ania
Don't know about searching achives on the "moon"; best bet is to retrieve
the achives and search at your own site. Your comments about some
questions being asked (& answered) over & over are right on.
Here is a script I use to query a copy of the archives that I keep:
---------------------------------------
#!/bin/sh
#This script "grassu94" searches for a 'keyword' in the following
# file: grassu.92.gz. If it finds whatever you requested, the
# script then prints that line or lines out on the terminal. If it doesn't
# find what you asked for, the script will tell you that it can't be found.
# usage: grassu94 'keyword'
if test $# -gt 0
then
arg="$*"
gzcat $HOME/mail/grassu.94.gz | grep -i -n "$arg" | more
es=$?
if test $es = '0'
then
exit 0
else
echo "$*" not found in grassu.94 file.
exit 1
fi
else
echo You have not entered anything to look up.
exit 2
fi
-----------------------
The following script file can be used to delete a LOT of extraneous header
lines that unfortunately come with the archives -- I estimate this reduces
the size of the achives by 30%. Of course, UNIX compress of GNU gzip
should be used to keep the 'cleaned' file as small as possible, but that's
a personal decision.
----------------------
#clean
#usage: clean 'file'
ex $1 << EOF
:g/^Re/d
:g/^ id/d
:g/^ (/d
:g/^Se/d
:g/^Appar/d
:g/^X/d
:g/^In-Reply/d
:g/^Status:/d
:g/^Errors-To/d
:g/^Pre/d
:g/^From lists/d
:g/^Message/d
:g/^To:/d
:g/^From grass/d
:g/^Content/d
:g/^Organization/d
:g/^Received/d
:wq
EOF
----------------------------------
Ronald Thomas Email: ron_thomas@nps.gov
Natural Resource Spec. (GIS) ^^^ Phone: 303-586-1292
Resources Management Division ^^ ^^^^^ FAX: 303-586-1310
Rocky Mountain National Park ^^^ ^^^^^^^ Estes Park, CO 80517