{"id":16879006,"url":"https://github.com/jonas/dgrep","last_synced_at":"2025-07-27T07:08:48.354Z","repository":{"id":27811239,"uuid":"31300698","full_name":"jonas/dgrep","owner":"jonas","description":"Simple tool to search files in a directory for a word","archived":false,"fork":false,"pushed_at":"2015-04-02T03:38:11.000Z","size":476,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-19T21:44:19.501Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","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/jonas.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-02-25T06:37:26.000Z","updated_at":"2021-09-12T17:48:17.000Z","dependencies_parsed_at":"2022-08-24T23:00:43.443Z","dependency_job_id":null,"html_url":"https://github.com/jonas/dgrep","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jonas/dgrep","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonas%2Fdgrep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonas%2Fdgrep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonas%2Fdgrep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonas%2Fdgrep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonas","download_url":"https://codeload.github.com/jonas/dgrep/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonas%2Fdgrep/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267320257,"owners_count":24068527,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-13T15:52:28.650Z","updated_at":"2025-07-27T07:08:48.334Z","avatar_url":"https://github.com/jonas.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DGrep\n\nGiven a word and a directory, find all files which are descendants of\nthe directory path and contain the word. Note that only exact words will\nmatch, for example the search word `Scala` will not match the line:\n```\nWritten in Scala.\n```\nsince it is broken down into the words: `Written`, `in`, `Scala.`\n\nDGrep assumes that all files are UTF-8 encoded.\n\n## Getting started\n\nTo build the program:\n\n    $ sbt assembly\n\nThis will produce a fat-jar in `target/scala-2.11/dgrep.jar`.\n\nTo run the program from the root of the DGrep project:\n\n    $ java -jar target/scala-2.11/dgrep.jar Scala src/test/resources/wikipedia/prog/lang\n    src/test/resources/wikipedia/prog/lang/scala.da.txt\n    src/test/resources/wikipedia/prog/lang/scala.fr.txt\n    src/test/resources/wikipedia/prog/lang/scala.txt\n\nThis also shows an example output of the program.\n\nTo run the tests:\n\n    $ sbt test\n\nTo launch a virtual machine with Ubuntu 14.04 (requires that Vagrant and\nVirtualBox are installed on the host machine) and install all software\nrequired for running and testing DGrep:\n\n    host\u003e vagrant up\n    # Then ssh into the vm\n    host\u003e vagrant ssh\n    # Once inside the vm shell execute the install script\n    vm\u003e sudo /vagrant/install-deps.sh\n\n## Options\n\nThe program supports the following options:\n\n * `-s` Suppress error messages printed to stderr.\n * `-L` Print only files not containing the search word.\n * `-n` List the line number and content of all matching lines.\n\n## Licensing\n\nThis program is licensed under the Apache License, version 2. See [the\nLICENSE file](LICENSE) for details.\n\nCertain test data is licensed under separate licenses as indicated in\nthe README files at the root of each directory:\n\n* [Wikipedia documents](src/test/resources/wikipedia/)\n* [Twitter's Effective Scala](src/test/resources/effective-scala/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonas%2Fdgrep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonas%2Fdgrep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonas%2Fdgrep/lists"}