Ruud H.G. van Tol on Tue, 10 Jan 2023 11:05:29 +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 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`) -- Ruud