Shell scripts for GRASS

Where can I find information on how to write
shell scripts to run on GRASS ?

Examples: grass.logo.sh

Thanks

Sastry