This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# it works on only cygwin. | |
# | |
if [ $# -eq 0 ] | |
then | |
netsh wlan show profiles | cut -d':' -f 2 | sed -e 's/^[ ]*//g' -e '1,8d' | |
else | |
netsh wlan show profiles name="$1" key=clear | nkf | grep -e 'SSID' | grep -e '名' | cut -d':' -f 2 | sed -e 's/"//g' -e 's/ //g' | |
netsh wlan show profiles name="$1" key=clear | nkf | grep '主要なコンテンツ' | cut -d':' -f 2 | sed 's/^[ ]*//g' | |
fi |
しかし、shell scriptのデバッグはtypoとの戦いだわ。
0 件のコメント:
コメントを投稿