On 08/04/2017 01:00 PM, ToddAndMargo wrote:
Hi All,

How do I do this with a perl one liner?

$ echo "a b c d" | awk '{print $2}'
b

Many thanks,
-T


And it is getting weirder:

$ echo "a b c d" | perl6 -n -e 'say lines ~ "\n" ~ .words[2];'
( c)

without "-n" ".words" doesn't work.

With "-n" "lines" doesn't work

--
~~~~~~~~~~~~~~~~~~~~~~~~
Yesterday it worked.
Today it is not working.
Windows is like that.
~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to