Re: sed:awk:perl::rock:paper:chainsaw [was Re: Using .XCompose]

2020-07-19 Thread William Michels
Hello Ajith, Tom Browder suggests taking a look at Raku (née Perl6), and I concur. While I don't know Malayalam at all, I can write the regex code below with ease: > #all code below using the Raku REPL: > say '0123456789'.chars; 10 > say $/ if '0123456789' ~~ / \d+ /; 「0123456789」 > #now with B

Re: sed:awk:perl::rock:paper:chainsaw [was Re: Using .XCompose]

2020-07-18 Thread William Michels
On Sat, Jul 18, 2020 at 3:40 AM Zenaan Harkness wrote: > # simple version: > perl -p -i[.bak] -e 's/xxx/yyy/[g];' $(readlink somefile) # readlink is > necessary do not clobber symlinks Speaking as not-an-expert on Raku (née Perl6), you'd write the above something like: user@mbook:~$ # One-liner

Re: delimiters with more than one character?

2020-07-16 Thread William Michels
On Thu, Jul 16, 2020 at 12:03 PM Nicolas George wrote: > > Observe your output carefully. You'll notice that the string you defined > does not actually contain any backslash. > > Regards, > > Nicolas George Thank you, Nicholas! Looks like the trick for Raku one-liners on the bash command line i

Re: delimiters with more than one character?

2020-07-16 Thread William Michels
mailto:debian-user@lists.debian.org?in-reply-to=< cafakbwhn7crfsov60mr9tf4vus1duv4cnqohbbdyx-awoxw...@mail.gmail.com>&subject=Re:%20Re: delimiters with more than one character? ...">debian-user@lists.debian.org I've slowly been learning the Raku programming language (AKA Perl6), and while I'm far