>> Hi All, >> >> How do I do this with a perl one liner? >> >> $ echo "a b c d" | awk '{print $2}' >> b >> >> Many thanks, >> -T
On 08/04/2017 01:31 PM, Patrick R. Michaud wrote:
How about... $ echo "a b c d" | ./perl6 -n -e '.words[1].say' b Pm On Fri, Aug 04, 2017 at 01:00:52PM -0700, ToddAndMargo wrote:
I can't win. :'( $ echo "a b c d" | perl6 -e 'say lines ~ "\n" ~ .words[2];' No such method 'words' for invocant of type 'Any' in block <unit> at -e line 1 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Computers are like air conditioners. They malfunction when you open windows ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~