in reply to Calling perl from zsh w/ vars

I had to look for what .zsh meant. I guess this is a Mac/Apple thing.
Searching for a count of matching pattern lines, normally uses grep, there is an option to print the number of lines matched.
Perl is not required. However Perl can be used for that without requiring a shell program or grep. Why not use command line grep for "count of lines matching a pattern"?

Replies are listed 'Best First'.
Re^2: Calling perl from zsh w/ vars
by karlgoethebier (Abbot) on Jul 18, 2020 at 15:24 UTC
    «...a Mac/Apple thing»

    He, yes and no 🤪😎 They replaced bash with zsh. See also. Best regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

    perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

      I like your link to Z Shell Wiki. My Unix shell experience is mainly with BASH.

        De rien. You may also take a look at ksh. Best regards, Karl

        «The Crux of the Biscuit is the Apostrophe»

        perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

Re^2: Calling perl from zsh w/ vars
by Anonymous Monk on Jul 18, 2020 at 13:06 UTC
    I guess this is a Mac/Apple thing.

    No.