wiki:jazz/11-05-27

Version 1 (modified by jazz, 13 years ago) (diff)

--

2011-05-27

Linux

  • [需求] 使用指令將 MAC Address 轉換成全部大寫(英文小寫變大寫,lowercase to uppercase)
  • [參考] convert to upper case
  • [解法] 使用 tr "[:lower:]" "[:upper:]"
    ~$ ifconfig | grep wlan1 | sed 's#.*HWaddr ##' | tr "[:lower:]" "[:upper:]"