2010-03-26から1日間の記事一覧
#!/bin/sh #fgdn.sh _IFS="$IFS" DOMAIN_ONLY=NO #hostnameの結果を.で区切り引数リストにセット host=`hostname` IFS="." set -- $host IFS="$_IFS" [ "$1" = "-d" ] && DOMAIN_ONLY=YES if [ $# -eq 1 ]; then host=$1 set -- `grep 'domain[ \t]' /etc/re…
#!/bin/sh #fgdn.sh _IFS="$IFS" DOMAIN_ONLY=NO #hostnameの結果を.で区切り引数リストにセット host=`hostname` IFS="." set -- $host IFS="$_IFS" [ "$1" = "-d" ] && DOMAIN_ONLY=YES if [ $# -eq 1 ]; then host=$1 set -- `grep 'domain[ \t]' /etc/re…