{"id":22531655,"url":"https://github.com/gyumeijie/findx","last_synced_at":"2025-03-28T05:19:36.835Z","repository":{"id":57236421,"uuid":"154020673","full_name":"Gyumeijie/findx","owner":"Gyumeijie","description":"simple extension of the `find` command, but more easy to use.","archived":false,"fork":false,"pushed_at":"2019-04-17T12:58:16.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-10T00:58:08.880Z","etag":null,"topics":["cli","command-line-tool","extension","find","finder","shell","wrapper"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/findx","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gyumeijie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-21T15:03:05.000Z","updated_at":"2023-09-08T17:46:22.000Z","dependencies_parsed_at":"2022-08-23T16:20:17.322Z","dependency_job_id":null,"html_url":"https://github.com/Gyumeijie/findx","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/Gyumeijie%2Ffindx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gyumeijie%2Ffindx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gyumeijie%2Ffindx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gyumeijie%2Ffindx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gyumeijie","download_url":"https://codeload.github.com/Gyumeijie/findx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245973332,"owners_count":20702810,"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":["cli","command-line-tool","extension","find","finder","shell","wrapper"],"created_at":"2024-12-07T08:08:24.942Z","updated_at":"2025-03-28T05:19:36.812Z","avatar_url":"https://github.com/Gyumeijie.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# findx [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\nThe `findx` is a **wrapper** of the `find` command, and extents the `find` some way for easy use.\n\n# Install\n```bash\n$ npm install -g findx\n```\nor      \n\n```bash\n$ git clone https://github.com/Gyumeijie/findx.git\n$ cd findx\n$ ./install\n```\n\u003e Using `npm` is recommended, for it is easy to uninstall and upgrade.\n\n# Usage\n\nCurrently, `findx` extents the `-exec` of `find`. \n\n```bash \nfindx /path/to/find -exec 'cmd1, cmd2, cmd3;' -exec 'cmd4, cmd5;'\n```\ncommand can reference each matched file by `$file`. Use `,` to separate command, and `;` or `\\;` to terminate(`;` is recommended).\n\u003e Caveat: please use `' '` to enclose commands instead of `\" \"`. :exclamation::exclamation::exclamation:\n\nFor example, give `/tmp/test/find` has the following structure:\n\n```\n.\n├── example10.jpg\n├── example1.jpg\n├── example2.jpg\n├── example3.jpg\n├── example4.jpg\n├── example5.jpg\n├── example6.jpg\n├── example7.jpg\n├── example8.jpg\n└── example9.jpg\n```\nTake as an example changing the suffix of these files to `png`, with **findx** we can do this:\n\n```\nfindx /tmp/test/find -name \"*.jpg\" -exec 'name=${file%.*}, mv $file ${name}.png;'\n```\n\n```\n.\n├── example10.png\n├── example1.png\n├── example2.png\n├── example3.png\n├── example4.png\n├── example5.png\n├── example6.png\n├── example7.png\n├── example8.png\n└── example9.png\n```\n# Guide\n\nTheoretically, we can use **any valid shell commands** inside `-exec`, but we don't recommand writing a string of commands in this way, the preferred way is to use a shell script file which includes these commands.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgyumeijie%2Ffindx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgyumeijie%2Ffindx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgyumeijie%2Ffindx/lists"}