github.com/tommi2day/tnscli@v0.0.0-20240401211958-338fc0647b73/scripts/tnslookup (about) 1 #!/bin/bash 2 3 # search a service and print details 4 5 SEARCH=$1 6 7 if [ "$SEARCH" = "" ]; then 8 echo "search a service and print details" 9 echo "Usage: $0 <service or part>" 10 exit 1 11 fi 12 13 if [ "$DEBUG" = "1" ]; then 14 DEBUG="--debug" 15 fi 16 tnscli list --complete --search "$SEARCH" $DEBUG