|
|
1.1 ! root 1: #!/bin/sh ! 2: cf=$HOME/.country ! 3: if test $# -lt 1 -o $# -gt 2 ! 4: then ! 5: echo "Usage: osearch organisation [ country ]" ! 6: exit ! 7: fi ! 8: ! 9: if test $# -eq 2 ! 10: then ! 11: country=$2 ! 12: echo $country > $cf ! 13: else ! 14: if test -f $cf ! 15: then ! 16: country=`cat $cf` ! 17: else ! 18: country=gb ! 19: echo $country > $cf ! 20: fi ! 21: fi ! 22: echo Searching in country \"$country\" for Organisations matching \"$1\" ! 23: search @c=$country -filter "o~=$1 | o=\*$1\*" -type description -type telephonenumber -show
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.