On 08/04/2017 01:07 AM, Elizabeth Mattijsen wrote:
On 4 Aug 2017, at 09:47, Todd Chester <toddandma...@zoho.com> wrote:
In Linux, how do I things to a perl6 one liner?

I want to send
   ip -o -f inet addr show | perl6 ***dig out the netmask on eno1***

I know how to dig out the net mask, I just don't how to pipe
to the command.

lines()

as in e.g.

   $ ip -o -f inet addr show | perl6 -e '.say for lines’


Hi Elizabeth,

I understand nwo.  Thank you!

$ echo -e "abc\ndef\nghi" | perl6 -e 'my @y = split "\n", lines; say @y'
[abc def ghi]

-T

Reply via email to