Hongyi Zhao on Tue, 10 Jan 2023 11:20:45 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Programmatically obtain a complete list of commands and keywords for updating the PARI/GP third-party IDE tools.


On Tue, Jan 10, 2023 at 6:04 PM Ruud H.G. van Tol <rvtol@isolution.nl> wrote:
>
>
> On 2023-01-10 10:42, Hongyi Zhao wrote:
> > On Tue, Jan 10, 2023 at 5:22 PM Ruud H.G. van Tol <rvtol@isolution.nl> wrote:
> >> echo '?*' |gp -fq |perl -aE'/\bRETURN\b/ or push@R,@F;END{say for@R}'
> >> |sort|less
> >> [...]
> >> For case-insensitive sort, add -f.
> > Nice. It does the trick. But Perl is my nightmare, and I'm always
> > confused by its strange syntax.
> >
> > werner@X10DAi:~$ echo '?*' |gp -fq |perl -afE'/\bRETURN\b/ or
> > push@R,@F;END{say for@R}' |sort| tail
>
> I mentioned the -f with the sort. :)
> (also see `man sort`)

So, you mean the following:

werner@X10DAi:~$ sort --help | grep -- '^[ ]*-f'
  -f, --ignore-case           fold lower case to upper case characters

werner@X10DAi:~$ echo '?*' |gp -fq |perl -aE'/\bRETURN\b/ or
push@R,@F;END{say for@R}' |sort -f| tail
znchartoprimitive
znconreychar
znconreyconductor
znconreyexp
znconreylog
zncoppersmith
znlog
znorder
znprimroot
znstar

> -- Ruud
Zhao