Introduction to Grass

There is a directory called scripts in grass4.1(3) that has a script called
demo.sh. You need to be in the spearfish database to run it. I can't tell you
what it does exactly because I don't have the spearfish database on line.

Give it a try