{"id":16746961,"url":"https://github.com/selfup/filenamefinder","last_synced_at":"2025-10-03T13:30:59.695Z","repository":{"id":71266513,"uuid":"354628478","full_name":"selfup/filenamefinder","owner":"selfup","description":"fuzzy find in go - exec or lib","archived":false,"fork":false,"pushed_at":"2022-03-12T05:52:00.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-22T00:33:50.503Z","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/selfup.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":"2021-04-04T19:23:18.000Z","updated_at":"2022-03-12T05:47:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"a4f2ba36-f52d-4a42-87d3-9011d8dfaf94","html_url":"https://github.com/selfup/filenamefinder","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/selfup%2Ffilenamefinder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfup%2Ffilenamefinder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfup%2Ffilenamefinder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfup%2Ffilenamefinder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/selfup","download_url":"https://codeload.github.com/selfup/filenamefinder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235134777,"owners_count":18941326,"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-13T02:08:45.973Z","updated_at":"2025-10-03T13:30:59.690Z","avatar_url":"https://github.com/selfup.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ARCHIVED\n\n### Successor lives on!\n\nPlease use [scnnr](https://github.com/selfup/scnnr) which has this mode built-in!\n\nscnnr: https://github.com/selfup/scnnr\n\n# File Name Finder\n\nConcurrent, recursive, file name finder.\n\nCan search for multiple keywords in file names.\n\nOutput is pipe friendly, so you can grep or xargs all day.\n\n### Install\n\n```\ngo install github.com/selfup/filenamefinder@latest\n```\n\n### Use\n\n```\n$ filenamefinder -h\nUsage of filenamefinder:\n  -k string\n        keyword(s) for the filename - can be comma delimited\n  -p string\n        absolute path - can be comma delimited\n```\n\nExample looking for all README files in $HOME and doing a count of matches (linux):\n\n```\n$ time filenamefinder -p=\"$HOME\" -k='README' | wc -l\n4815\n\nreal    0m1.389s\nuser    0m4.960s\nsys     0m2.708s\n```\n\n---\n\nPerformance is quite similar to `find` but this is such little code I figured why not.\n\nYou can also use this in your go projects and not have to exec a shell command.\n\nThat's nice too.\n\n### Use as a lib\n\n```go\nimport (\n    \"fmt\"\n    \"strings\"\n\n    filenamefinder \"github.com/selfup/filenamefinder/pkg\"\n)\n\nscankeywords := strings.Split(\"first_keyword,second_keyword\", \",\")\nscanPaths := strings.Split(\"/tmp,/etc,/home\", \",\")\n\nnfnf := filenamefinder.NewFileNameFinder(scanKeywords)\n\nfor _, path := range scanPaths {\n    nfnf.Scan(path)\n}\n\nfor _, file := range nfnf.Files {\n    fmt.Println(file)\n}\n```\n\n### Caveats\n\nCurrently fuzzy find which I prefer.\n\nThe rest can be narrowed down with grep or any other pipe freindly util.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselfup%2Ffilenamefinder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fselfup%2Ffilenamefinder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselfup%2Ffilenamefinder/lists"}