News for hackers. Stuff that matters.
Re:Awk: `Begin { ` Part 1 by sergeykish on Friday October 30, 2020 @10:16AM (#24942406)

    $ ruby -rcsv -ne 'puts $_.parse_csv[1]' education.csv
    Enrolment in primary, secondary and tertiary education levels
    Total, all countries or areas
AWK is a nice little language. Perl is all of it and shell, sed, grep. I am not proficient in Perl but I know some Ruby

    $ ruby -rEnglish -ne 'puts $_ if $NR <= 5' education.csv 
    $ ruby -rEnglish -aF, -ne 'puts $F[1] if $NR <= 5' education.csv 
    $ ruby -rEnglish -ne 'END { puts $NR }' education.csv
    $ ruby -rEnglish -ne 'puts $_ if $NR % 500 == 0' education.csv
Module English provides AWK names

    $ perl -MEnglish -ne 'print if $NR < 5' education.csv
https://ruby-doc.org/stdlib-2.3.0/libdoc/English/rdoc/Englis...
Re:Awk: `Begin { ` Part 1 by mulmen on Friday October 30, 2020 @02:26PM (#24945365)
Ah Perl, the Swiss Army Chainsaw.

My first big kid job was taking over ownership of a Perl-based Oracle-backed data warehouse. Mostly it was SQL queries wrapped up with a Perl script executed by cron that output excel workbooks or csvs and emailed or dumped to a file server.

Most of the pivots and reporting tables were actually generated in Perl because it was just nicer to work with than Excel.

It was wonderful, I learned so much, mostly how to love Perl and CPAN.

We merged our telco billing system with our new parent company with some Perl, cron, a couple SQL queries and an FTP server.

I have said it for years and I will continue to repeat. If you could snap your fingers and delete all the Perl code in the world your lights would turn off.