> On 4 Aug 2017, at 22:00, ToddAndMargo <toddandma...@zoho.com> wrote:
> 
> Hi All,
> 
> How do I do this with a perl one liner?
> 
> $ echo "a b c d" | awk '{print $2}'
> b

echo "a b c d" | perl6 -e 'say words[1]’

Note array indices in Perl 6 are 0 based.

Reply via email to