{"id":23508798,"url":"https://github.com/lovasko/bd","last_synced_at":"2025-05-13T15:35:07.131Z","repository":{"id":41081283,"uuid":"45869873","full_name":"lovasko/bd","owner":"lovasko","description":"Binary Dump","archived":false,"fork":false,"pushed_at":"2015-11-13T02:37:18.000Z","size":0,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-25T11:32:46.516Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lovasko.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-11-09T22:05:09.000Z","updated_at":"2019-10-21T09:38:06.000Z","dependencies_parsed_at":"2022-09-06T22:03:05.591Z","dependency_job_id":null,"html_url":"https://github.com/lovasko/bd","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/lovasko%2Fbd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasko%2Fbd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasko%2Fbd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasko%2Fbd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lovasko","download_url":"https://codeload.github.com/lovasko/bd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239188697,"owners_count":19597032,"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-12-25T11:32:11.450Z","updated_at":"2025-02-16T19:44:30.049Z","avatar_url":"https://github.com/lovasko.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bd\nBinary dump utility that respects your `CHAR_BIT` value and your bit numbering.\nWritten in a strict C99, `bd` will work on any architecture and platform.\n\n## Introduction\nThe standard `od` utility does not support binary output (just like `printf`\ndoes not have `%b`), yet it would be great to use it once in a while. The `bd`\nutility fills this hole and aims at maximum flexibility and portability of the\nsource code.\n\n## Usage\nThe `bd` utility groups bits into groups and puts a certain number of groups on\none line. Both of these values can be set by options `-g N` and `-n N`\nrespectively. Default values amount to `CHAR_BIT` for the group size and `8`\nfor the groups-per-line setting.\n\nIn case you want to skip a certain number of bits (e.g. a file format header),\nuse the option `-s N`.\n\nIt is possible to explicitly specify the bit numbering by using the `-l` and\n`-m` options that force the *l*east and *m*ost significant bit.\n\n## Example\n### Random data\n```\n$ head -c 6 /dev/random | bd -g 4 -n 4\n0111 0010 1101 1001\n1001 1101 0101 1101\n0001 1001 0000 1100\n```\n\n### Least significant 'A'\n```\n$ echo -n 'A' | bd -n 1 -l\n10000010\n```\n\n### Most significant 'A'\n```\n$ echo -n 'A' | bd -n 1 -m\n01000001\n```\n\n## Build \u0026 install\n```\n$ make\n$ sudo mv ./bd /usr/bin\n```\n\n## License\n2-clause BSD license. For more information please consult the\n[LICENSE](LICENSE.md) file. In the case that you need a different license, feel\nfree to contact me.\n\n## Author\nDaniel Lovasko (daniel.lovasko@gmail.com)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovasko%2Fbd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flovasko%2Fbd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovasko%2Fbd/lists"}