{"id":16105892,"url":"https://github.com/devlights/grep-docx","last_synced_at":"2025-04-06T03:13:45.798Z","repository":{"id":257343710,"uuid":"852590951","full_name":"devlights/grep-docx","owner":"devlights","description":"指定ディレクトリの下に存在する MS WORD ファイル (*.docx) をGREPコマンドのように検索します。","archived":false,"fork":false,"pushed_at":"2024-09-05T04:54:00.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T08:58:49.158Z","etag":null,"topics":["go","golang","grep","grep-like","msoffice","ole","word"],"latest_commit_sha":null,"homepage":"","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/devlights.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":"2024-09-05T04:31:59.000Z","updated_at":"2024-09-05T04:52:44.000Z","dependencies_parsed_at":"2024-09-16T05:54:36.080Z","dependency_job_id":"99708a0f-d771-411a-9ddc-f9a789dc5371","html_url":"https://github.com/devlights/grep-docx","commit_stats":null,"previous_names":["devlights/grep-docx"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fgrep-docx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fgrep-docx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fgrep-docx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fgrep-docx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devlights","download_url":"https://codeload.github.com/devlights/grep-docx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247427012,"owners_count":20937214,"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":["go","golang","grep","grep-like","msoffice","ole","word"],"created_at":"2024-10-09T19:11:03.527Z","updated_at":"2025-04-06T03:13:45.769Z","avatar_url":"https://github.com/devlights.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# これは何？\n\n指定ディレクトリの下に存在する MS WORD ファイル (*.docx) をGREPコマンドのように検索します。\n\n対象のWORDファイルが存在していて、どこに書いてあるのかが分からない時などに良かったらご利用ください。\n\nWindowsのみで動作します。\n\n## インストール\n\n```sh\ngo install github.com/grep-docx/cmd/grep-docx@latest\n```\n\n## 使い方\n\n```sh\n$ ./grep-docx.exe -h\nUsage of ./grep-docx.exe:\n  -debug\n        debug mode\n  -dir string\n        directory (default \".\")\n  -json\n        output as JSON\n  -only-hit\n        show ONLY HIT (default true)\n  -text string\n        search text\n  -verbose\n        verbose mode\n```\n\nヒットした文書のパスが知りたい場合は以下のようにします。\n\n```sh\n$ ./grep-docx.exe -dir ~/path/to/documents -text \"データベースサイズ\"\ntest.docx: HIT\n```\n\nヒットした箇所も見たい場合は ```-verbose``` オプションを付与するとみることが出来ます。\n\n```sh\n$ ./grep-docx.exe -dir ~/path/to/documents -text \"データベース*サイズ\" -verbose  \n```\n\n結果をjsonで出力したい場合は ```-json``` オプションを付与します。\n\n```sh\n$ ./grep-docx.exe -dir ~/path/to/documents -text \"データベース*サイズ\" -verbose  -json\n```\n\n## ビルド方法\n\n[Task](https://taskfile.dev/#/) を使っています。詳細は [Taskfile.yml](./Taskfile.yml) を参照ください。\n\n```sh\n$ task build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlights%2Fgrep-docx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevlights%2Fgrep-docx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlights%2Fgrep-docx/lists"}