{"id":17167405,"url":"https://github.com/kward/tabulate","last_synced_at":"2025-06-18T22:35:42.806Z","repository":{"id":34645235,"uuid":"38606033","full_name":"kward/tabulate","owner":"kward","description":"Tabulate is a command-line tool to convert record type data (e.g. CSV files) into a pretty printed table.","archived":false,"fork":false,"pushed_at":"2020-03-01T23:12:09.000Z","size":40,"stargazers_count":16,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T15:42:10.103Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kward.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}},"created_at":"2015-07-06T08:13:16.000Z","updated_at":"2024-09-06T17:40:53.000Z","dependencies_parsed_at":"2022-09-15T07:10:22.242Z","dependency_job_id":null,"html_url":"https://github.com/kward/tabulate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kward/tabulate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kward%2Ftabulate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kward%2Ftabulate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kward%2Ftabulate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kward%2Ftabulate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kward","download_url":"https://codeload.github.com/kward/tabulate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kward%2Ftabulate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260646093,"owners_count":23041660,"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-14T23:08:39.332Z","updated_at":"2025-06-18T22:35:37.793Z","avatar_url":"https://github.com/kward.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tabulate\nTabulate is a command-line tool to convert record type data (e.g. CSV files)\ninto a pretty printed table.\n\n## Project links\n[![Travis CI](https://img.shields.io/travis/kward/tabulate.svg)](https://travis-ci.org/kward/tabulate)\n[![GoDoc](https://godoc.org/github.com/kward/tabulate?status.svg)](https://godoc.org/github.com/kward/tabulate)\n\n## Usage\nAn easy example is to tabulate your `/etc/passwd` file. Here are the first 10\nnon-comment lines from my `/etc/passwd` file.\n\n```console\n$ grep -v ^# /etc/passwd |head\nnobody:*:-2:-2:Unprivileged User:/var/empty:/usr/bin/false\nroot:*:0:0:System Administrator:/var/root:/bin/sh\ndaemon:*:1:1:System Services:/var/root:/usr/bin/false\n_uucp:*:4:4:Unix to Unix Copy Protocol:/var/spool/uucp:/usr/sbin/uucico\n_taskgated:*:13:13:Task Gate Daemon:/var/empty:/usr/bin/false\n_networkd:*:24:24:Network Services:/var/networkd:/usr/bin/false\n_installassistant:*:25:25:Install Assistant:/var/empty:/usr/bin/false\n_lp:*:26:26:Printing Services:/var/spool/cups:/usr/bin/false\n_postfix:*:27:27:Postfix Mail Server:/var/spool/postfix:/usr/bin/false\n_scsd:*:31:31:Service Configuration Service:/var/empty:/usr/bin/false\n```\n\nAnd again run through tabulate.\n\n```console\n$ grep -v ^# /etc/passwd |head |go run tabulate.go -I :\nnobody            * -2 -2 Unprivileged User             /var/empty         /usr/bin/false\nroot              * 0  0  System Administrator          /var/root          /bin/sh\ndaemon            * 1  1  System Services               /var/root          /usr/bin/false\n_uucp             * 4  4  Unix to Unix Copy Protocol    /var/spool/uucp    /usr/sbin/uucico\n_taskgated        * 13 13 Task Gate Daemon              /var/empty         /usr/bin/false\n_networkd         * 24 24 Network Services              /var/networkd      /usr/bin/false\n_installassistant * 25 25 Install Assistant             /var/empty         /usr/bin/false\n_lp               * 26 26 Printing Services             /var/spool/cups    /usr/bin/false\n_postfix          * 27 27 Postfix Mail Server           /var/spool/postfix /usr/bin/false\n_scsd             * 31 31 Service Configuration Service /var/empty         /usr/bin/false\n```\n\nAnd again rendered using the `mysql` renderer.\n\n```\n$ grep -v ^# /etc/passwd |head |go run tabulate.go -I : -r mysql\n+-------------------+---+----+----+-------------------------------+--------------------+------------------+\n| nobody            | * | -2 | -2 | Unprivileged User             | /var/empty         | /usr/bin/false   |\n| root              | * | 0  | 0  | System Administrator          | /var/root          | /bin/sh          |\n| daemon            | * | 1  | 1  | System Services               | /var/root          | /usr/bin/false   |\n| _uucp             | * | 4  | 4  | Unix to Unix Copy Protocol    | /var/spool/uucp    | /usr/sbin/uucico |\n| _taskgated        | * | 13 | 13 | Task Gate Daemon              | /var/empty         | /usr/bin/false   |\n| _networkd         | * | 24 | 24 | Network Services              | /var/networkd      | /usr/bin/false   |\n| _installassistant | * | 25 | 25 | Install Assistant             | /var/empty         | /usr/bin/false   |\n| _lp               | * | 26 | 26 | Printing Services             | /var/spool/cups    | /usr/bin/false   |\n| _postfix          | * | 27 | 27 | Postfix Mail Server           | /var/spool/postfix | /usr/bin/false   |\n| _scsd             | * | 31 | 31 | Service Configuration Service | /var/empty         | /usr/bin/false   |\n+-------------------+---+----+----+-------------------------------+--------------------+------------------+\n```\n\nYou can of course build tabulate into a binary, and place it into your favorite\nbinary location.\n\n```console\n$ go build tabulate.go\n$ mv tabulate ${HOME}/bin\n```\n\nTo get a full list of options, request `--help`.\n\n```console\n$ go run tabulate.go --help\nUsage of /var/folders/00/0525h000h01000cxqpysvccm000m8p/T/go-build655823536/command-line-arguments/_obj/exe/tabulate:\n  -I=\" \": Input field separator.\n  -O=\" \": Output field separator.\n  -cols=0: Number of columns; 0=all.\n  -comment_prefix=\"#\": Comment prefix.\n  -comments=true: Ignore comments.\n  -r=\"plain\": Output renderer. (shorthand)\n  -render=\"plain\": Output renderer.\nSupported renderers:\n  csv\n  markdown\n  mysql\n  plain\n  sqlite3\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkward%2Ftabulate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkward%2Ftabulate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkward%2Ftabulate/lists"}