⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex18.sh

📁 Shall高级编程
💻 SH
字号:
#!/bin/bash# ex18.sh# Does a 'whois domain-name' lookup on any of 3 alternate servers:#                    ripe.net, cw.net, radb.net# Place this script -- renamed 'wh' -- in /usr/local/bin# Requires symbolic links:# ln -s /usr/local/bin/wh /usr/local/bin/wh-ripe# ln -s /usr/local/bin/wh /usr/local/bin/wh-cw# ln -s /usr/local/bin/wh /usr/local/bin/wh-radbE_NOARGS=65if [ -z "$1" ]then  echo "Usage: `basename $0` [domain-name]"  exit $E_NOARGSfi# Check script name and call proper server.case `basename $0` in    # Or:    case ${0##*/} in    "wh"     ) whois $1@whois.ripe.net;;    "wh-ripe") whois $1@whois.ripe.net;;    "wh-radb") whois $1@whois.radb.net;;    "wh-cw"  ) whois $1@whois.cw.net;;    *        ) echo "Usage: `basename $0` [domain-name]";;esac exit $?

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -