valda <valda.bbs@ptt.cc> wrote:
> 剛買mac mini想寫點shell script~遇到一個笨問題~
> 如何將ifconfig | grep netmask | grep broadcast | awk '{print $4}'
> 所執行的結果指定給一個變數~~不好意思~這問題有點笨!
aa=`ifconfig | grep netmask | grep broadcast | awk '{print $4}'`
--
My Projects:
http://hyperrate.com
討論串 (同標題文章)
完整討論串 (本文為第 2 之 3 篇):