• [^] # Re: Qui code en perl ?

    Posté par (site web personnel) . En réponse à la dépêche Perl 5.36.0 est sorti. Évalué à 5.

    et pour être plus complet sur la répartition (script bash à la râche, j'aurais pu tout faire en gawk... l'équivalent en perl étant laissé à titre d'exercice :p) :

    file /bin/* | awk -F ":" '{gsub(/^[ \t]+/,"",2ドル) ; print 2ドル }' \
    | grep -vE "symbolic|setuid|setgid|^ELF" |sort -u \
    | while read vfiletype ; do \
     echo `file /bin/* |grep -c "$vfiletype"` ":" $vfiletype ; \
     done|sort -nr
    670 : ASCII text
    405 : a /usr/bin/sh script, ASCII text executable
    200 : Perl script text executable
    187 : Python script, ASCII text executable
    56 : Bourne-Again shell script, ASCII text executable
    15 : Python script, Unicode text, UTF-8 text executable
    10 : a /usr/bin/sh script, Unicode text, UTF-8 text executable
    5 : a /usr/bin/sh -e script, ASCII text executable
    4 : POSIX shell script, ASCII text executable
    4 : directory
    4 : a /usr/bin/sh script, ASCII text executable, with escape sequences
    3 : a /usr/bin/sh - script, ASCII text executable
    2 : a /usr/bin/sh script, ISO-8859 text executable
    2 : a /usr/bin/sh -f script, ASCII text executable
    1 : Python script, ISO-8859 text executable
    1 : Python script, ASCII text executable, with very long lines (402)
    1 : Python script, ASCII text executable, with escape sequences
    1 : gzip compressed data, max compression, from Unix, original size modulo 2^32 4545904
    1 : C source, ASCII text
    1 : Bourne-Again shell script, Unicode text, UTF-8 text executable
    1 : Bourne-Again shell script, Non-ISO extended-ASCII text executable
    1 : Bourne-Again shell script, ASCII text executable, with very long lines (702)
    1 : Bourne-Again shell script, ASCII text executable, with very long lines (363)
    1 : a /usr/bin/wish script, ASCII text executable
    1 : a /usr/bin/tclsh script, ASCII text executable
    1 : a /usr/bin/sh script, ISO-8859 text executable, with CR, LF line terminators
    1 : a /usr/bin/sh script, ASCII text executable, with very long lines (626)
    1 : a /usr/bin/sh script, ASCII text executable, with very long lines (1242)
    1 : a /usr/bin/sh script, ASCII text executable, with overstriking
    1 : a /usr/bin/sh -e script, ASCII text executable, with CR, LF line terminators
    1 : a /usr/bin/guile -s script, ASCII text executable
    1 : a /usr/bin/gjs script, ASCII text executable
    1 : a /usr/bin/env python3 script executable (binary data)

    ça permet aussi de voir le franc succès d'UTF-8 /o\ (hint: spa gagné :p)