On Mon, Aug 24, 2020 at 11:08 PM ToddAndMargo via perl6-users
wrote:
On 2020-08-24 19:35, ToddAndMargo via perl6-users wrote:
Hi All,
I seems I should know how to do this, but
I am drawing a blank.
$ cat Lines.txt | raku -ne 'say $_;'
Line 1
Line 2
Line 3
Line 4
Line 5
Line 6
Line 7
Line 8
$ cat Lines.txt | raku -e '.say for lines()[3,2,5]'
On Mon, Aug 24, 2020 at 11:08 PM ToddAndMargo via perl6-users
wrote:
>
> On 2020-08-24 19:35, ToddAndMargo via perl6-users wrote:
> > Hi All,
> >
> > I seems I should know how to do this, but
> > I am drawing a blank.
> >
> > $ cat Lines.txt |
On 2020-08-24 19:35, ToddAndMargo via perl6-users wrote:
Hi All,
I seems I should know how to do this, but
I am drawing a blank.
$ cat Lines.txt | raku -ne 'say $_;'
Line 1
Line 2
Line 3
Line 4
Line 5
Line 6
Line 7
Line 8
Line 9
Line 10
Line 11
I want to print liens 1, 3, and 7.
Assigning
Hi All,
I seems I should know how to do this, but
I am drawing a blank.
$ cat Lines.txt | raku -ne 'say $_;'
Line 1
Line 2
Line 3
Line 4
Line 5
Line 6
Line 7
Line 8
Line 9
Line 10
Line 11
I want to print liens 1, 3, and 7.
Assigning `my @x=$_.lines` puts everything into $x[0]
Many thanks,
Sorry, that may be wrong... I seem to have fallen into a maze of twisty little
passages, all alike as I try to research this.
However, I will publish a minimum viable patch to make the REPL happy on MacOS.
Sent from my iPhone
Daniel Lathrop (@lathropd)
Mobile: (206) 718-0349
PGP key: