On 08/05/2017 12:34 AM, Elizabeth Mattijsen wrote:

On 5 Aug 2017, at 09:21, ToddAndMargo <toddandma...@zoho.com> wrote:

On 08/04/2017 08:43 PM, Bruce Gray wrote:
P6-ish version:
ifconfig | perl6 -e 'say lines.map({ ~$0 if /^(\S+) ": flags="/ }).sort[1]'

Would some kind person please tell me what is going on here?

say the result of
   reading all lines of STDIN
     mapping them to the stringified match (~)
       of the first ($0) non-whitespace (\S+) characters
       starting at the beginning of the string (^)
       if they’re followed by “: flags=“
     sorting these strings (.sort)
     taking the second element of the sorted list ([1]



Thank you!

I will have to read it over several times!

Reply via email to