ifconfig | perl6 -e 'lines.grep("flags").map(*.words[0]).sort[1].chop'

this should do the trick. i'm not sure if 2,2p is meant to "output just
the second result" and if it's okay to just unconditionally remove the
last character.

hth
  - Timo

Reply via email to