{"id":20268993,"url":"https://github.com/patatetom/ttybarchart","last_synced_at":"2026-04-30T06:38:41.362Z","repository":{"id":256781113,"uuid":"82158538","full_name":"patatetom/ttybarchart","owner":"patatetom","description":"Horizontal bar chart in console with bash","archived":false,"fork":false,"pushed_at":"2017-02-17T16:09:45.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-10T23:11:19.340Z","etag":null,"topics":["bash","chart","console","graph","tty"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patatetom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-02-16T08:38:52.000Z","updated_at":"2022-12-04T11:04:32.000Z","dependencies_parsed_at":"2024-09-13T02:51:47.015Z","dependency_job_id":"36a0c530-e4ca-414e-96f6-85385bae6667","html_url":"https://github.com/patatetom/ttybarchart","commit_stats":null,"previous_names":["patatetom/ttybarchart"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/patatetom/ttybarchart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patatetom%2Fttybarchart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patatetom%2Fttybarchart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patatetom%2Fttybarchart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patatetom%2Fttybarchart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patatetom","download_url":"https://codeload.github.com/patatetom/ttybarchart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patatetom%2Fttybarchart/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259521511,"owners_count":22870448,"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":["bash","chart","console","graph","tty"],"created_at":"2024-11-14T12:22:26.441Z","updated_at":"2026-04-30T06:38:36.318Z","avatar_url":"https://github.com/patatetom.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ttybarchart\nHorizontal bar chart in console with bash\n\n```bash\n$ ttybarchart \u003c\u003c\u003c2015$'\\t'50\n2015 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 50\n\n$ echo -e \"2015\\t50\\n2016\\t100\" | ttybarchart\n2015 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 50\n2016 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 100\n\n$ cat labels.values.tsv \n2015\t50\n2016\t100\n2017\t150\n\n$ ttybarchart labels.values.tsv \n2015 ■■■■■■■■■■■■■■■■■■■■■■■ 50\n2016 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 100\n2017 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 150\n\n$ sort -r labels.values.tsv | ttybarchart \n2017 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 150\n2016 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 100\n2015 ■■■■■■■■■■■■■■■■■■■■■■■ 50\n\n$ zgrep -h 'GET /application/ ' /var/log/apache2/access.log* |\n    grep -o '../Feb/2017' |\n      sort |\n        uniq -c |\n          awk '{print $2\"\\t\"$1}' |\n            ttybarchart\n02/Feb/2017 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 36\n03/Feb/2017 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 30\n06/Feb/2017 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 40\n07/Feb/2017 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 25\n08/Feb/2017 ■■■■■■■■■■■■■■■■■■■■■■■■■ 17\n09/Feb/2017 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 21\n10/Feb/2017 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 42\n13/Feb/2017 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 33\n14/Feb/2017 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 22\n15/Feb/2017 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 22\n16/Feb/2017 ■■■■■■ 4\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatatetom%2Fttybarchart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatatetom%2Fttybarchart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatatetom%2Fttybarchart/lists"}