{"id":17694609,"url":"https://github.com/bailuk/char-histo","last_synced_at":"2025-10-15T07:09:45.838Z","repository":{"id":128790977,"uuid":"349946103","full_name":"bailuk/char-histo","owner":"bailuk","description":null,"archived":false,"fork":false,"pushed_at":"2021-03-21T09:20:54.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T05:12:50.591Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Raku","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bailuk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-21T08:59:48.000Z","updated_at":"2021-03-21T09:20:56.000Z","dependencies_parsed_at":"2023-04-25T15:30:49.538Z","dependency_job_id":null,"html_url":"https://github.com/bailuk/char-histo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bailuk%2Fchar-histo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bailuk%2Fchar-histo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bailuk%2Fchar-histo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bailuk%2Fchar-histo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bailuk","download_url":"https://codeload.github.com/bailuk/char-histo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246394361,"owners_count":20770110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-24T13:49:15.688Z","updated_at":"2025-10-15T07:09:45.760Z","avatar_url":"https://github.com/bailuk.png","language":"Raku","funding_links":[],"categories":[],"sub_categories":[],"readme":"# char-histo.pl\n\n## Overview:\n`char-histo.pl` is a script written in perl6 (raku).\n\nIt prints an overview of all used characters in a text file.\n\nThe output has the form of a sorted histogramm where the most\nused character is at the top and the least used character at the bottom.\n\n\n## Usage:\n`./char-histo.pl \u003cfile\u003e`\n\nor\n\n`perl6 char-histo.pl \u003cfile\u003e`\n\n\n## Example:\n````\n./char-histo.pl char-histo.pl \n\ncount        character                  first(l,c)        last(l,c)\n--------     -----------------          ----------        ---------\n     679               32 0x20          1,15              112,16\n     133     i        105 0x69          1,9               112,19\n     130     s        115 0x73          1,5               112,20\n     129     t        116 0x74          4,8               112,21\n     114               10 0xa           1,21              114,1\n     112     '         39 0x27          6,17              111,55\n     101     o        111 0x6f          4,13              112,22\n      75     -         45 0x2d          71,10             100,37\n      73     {        123 0x7b          4,17              111,48\n      73     }        125 0x7d          8,1               113,1\n      68     n        110 0x6e          1,10              112,8\n      62     %         37 0x25          5,8               112,17\n      61     h        104 0x68          5,9               112,18\n      60     e        101 0x65          1,12              112,14\n      56     r        114 0x72          1,6               112,15\n      55     l        108 0x6c          1,19              108,50\n      43     $         36 0x24          11,21             108,47\n      41     ;         59 0x3b          5,10              112,23\n      41     c         99 0x63          6,18              102,21\n      40     a         97 0x61          6,33              110,12\n      31     =         61 0x3d          6,15              108,15\n      28     u        117 0x75          1,4               108,18\n      27     f        102 0x66          18,6              108,48\n      26     ,         44 0x2c          6,27              111,31\n      25     y        121 0x79          5,6               111,39\n      23     p        112 0x70          1,16              112,5\n      21     _         95 0x5f          15,30             85,80\n      20     m        109 0x6d          5,5               108,30\n      19     d        100 0x64          11,6              110,13\n      15     b         98 0x62          1,8               108,17\n      14     (         40 0x28          4,14              108,35\n      14     )         41 0x29          4,15              108,52\n      11     \u003e         62 0x3e          6,24              85,97\n      11     1         49 0x31          6,26              88,44\n      10     +         43 0x2b          13,33             40,27\n       8     H         72 0x48          4,9               111,10\n       8     \"         34 0x22          26,14             88,58\n       7     0         48 0x30          6,40              88,45\n       6     F         70 0x46          45,15             112,10\n       6     ^         94 0x5e          62,19             64,49\n       5     /         47 0x2f          1,3               80,35\n       5     .         46 0x2e          37,16             101,51\n       4     :         58 0x3a          47,30             103,21\n       4     \u003c         60 0x3c          62,37             80,28\n       4     |        124 0x7c          63,8              64,9\n       3     v        118 0x76          1,14              52,15\n       3     A         65 0x41          35,8              107,6\n       3     k        107 0x6b          65,20             77,10\n       3     ~        126 0x7e          101,34            103,25\n       2     #         35 0x23          1,1               88,37\n       2     C         67 0x43          11,8              51,12\n       2     K         75 0x4b          60,9              111,37\n       2     @         64 0x40          75,24             77,9\n       1     !         33 0x21          1,2               \n       1     6         54 0x36          1,20              \n       1     q        113 0x71          26,12             \n       1     \\         92 0x5c          26,15             \n       1     w        119 0x77          50,5              \n       1     g        103 0x67          50,28             \n       1     8         56 0x38          88,23             \n       1     5         53 0x35          88,27             \n       1     3         51 0x33          88,39             \n       1     x        120 0x78          88,40             \n       1     M         77 0x4d          107,5             \n       1     I         73 0x49          107,7             \n       1     N         78 0x4e          107,8             \n----------------------------\ndifferent characters: 66\ntotal characters: 2531\ntotal lines: 115\n````\n\n## License\nPublic domain\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbailuk%2Fchar-histo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbailuk%2Fchar-histo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbailuk%2Fchar-histo/lists"}