{"id":24961015,"url":"https://github.com/nullnull/findr","last_synced_at":"2025-04-10T21:22:34.353Z","repository":{"id":33236950,"uuid":"156737117","full_name":"nullnull/findr","owner":"nullnull","description":"Alternative of `find | xargs sed`","archived":false,"fork":false,"pushed_at":"2022-06-25T07:30:53.000Z","size":22,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T06:03:16.002Z","etag":null,"topics":["find","ruby","sed"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/nullnull.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-08T16:35:56.000Z","updated_at":"2020-08-22T02:59:20.000Z","dependencies_parsed_at":"2022-09-09T00:52:44.700Z","dependency_job_id":null,"html_url":"https://github.com/nullnull/findr","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullnull%2Ffindr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullnull%2Ffindr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullnull%2Ffindr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullnull%2Ffindr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nullnull","download_url":"https://codeload.github.com/nullnull/findr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248299029,"owners_count":21080450,"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":["find","ruby","sed"],"created_at":"2025-02-03T08:45:16.882Z","updated_at":"2025-04-10T21:22:34.328Z","avatar_url":"https://github.com/nullnull.png","language":"Ruby","readme":"# Findr\n[![Gem](https://img.shields.io/gem/v/findr_null.svg)](https://rubygems.org/gems/findr_null)\n[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)\n\nBored with finding and replacing files by `find . -type f -name \"*.rb\" | xargs sed -i \"\" -e \"s/${1}/${2}/\"` ?\n\n`findr` is optimized tool to find files in directory recursively and replace texts in the files. findr has the following features:\n\n* **Replace by ruby regexp** : You can replace strings by using regexp in ruby. The behavior of `sed` sometimes differ depends on your os (expecially GNU and BSD ). Moreover, it's hard to replace strings with some contextby using `sed`, for example when replace strings with new line.\n* **Show stats** : `findr` shows searched files and results of replacement :tada: It will really help your development. (use ` --no-verbose` option to supress stats)\n\n[![Image from Gyazo](https://i.gyazo.com/c5ff3b85e1aa748eab5d864949373dc5.png)](https://gyazo.com/c5ff3b85e1aa748eab5d864949373dc5)\n\n## Installation\n```sh\n$ gem install findr_null\n```\n\n## Usage\n```sh\n# Replace 'apple' to 'lemon' in all files in current and children directory\n$ findr \"apple\" \"lemon\"\n\n# Delete a line with 'require' in all ruby file\n$ findr \"require(.*?)\\\\n\" \"\" \"**/*.rb\"\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/nullnull/findr. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Findr project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/findr/blob/master/CODE_OF_CONDUCT.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullnull%2Ffindr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnullnull%2Ffindr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullnull%2Ffindr/lists"}