= 2011-05-27 = == Linux == * [需求] 使用指令將 MAC Address 轉換成全部大寫(英文小寫變大寫,lowercase to uppercase) * [參考] [http://www.linuxforums.org/forum/programming-scripting/85586-convert-upper-case.html convert to upper case] * [解法] 使用 tr "[:lower:]" "[:upper:]" {{{ ~$ ifconfig | grep wlan1 | sed 's#.*HWaddr ##' | tr "[:lower:]" "[:upper:]" }}} * 今天想要找舊版的 Skype,碰巧看到這篇 [https://help.ubuntu.com/community/Skype Ubuntu Help > Skype] 介紹了用 apt-get 安裝 skype 的步驟,裡面用到指令 tee ,可以做到把某一行放到最後的目的,真有趣的用法 {{{ echo "deb http://download.skype.com/linux/repos/debian/ stable non-free #Skype" | sudo tee -a /etc/apt/sources.list > /dev/null }}}