Re: [問題] 請教shell script

看板Linux作者時間15年前 (2010/04/25 16:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/3 (看更多)
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
文章代碼(AID): #1Bq_u2pm (Linux)
文章代碼(AID): #1Bq_u2pm (Linux)