{"id":38514443,"url":"https://github.com/essteer/unixycle","last_synced_at":"2026-01-17T06:26:39.012Z","repository":{"id":253194374,"uuid":"842771337","full_name":"essteer/unixycle","owner":"essteer","description":"A recycle bin tool for UNIX","archived":false,"fork":false,"pushed_at":"2024-09-18T05:35:38.000Z","size":41,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-19T07:27:34.823Z","etag":null,"topics":["bash","filesystem","linux","unix"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/essteer.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-08-15T03:35:50.000Z","updated_at":"2024-09-18T05:35:41.000Z","dependencies_parsed_at":"2024-08-19T04:44:27.752Z","dependency_job_id":"6a4d8807-2c78-4e98-94fe-76d49f70d1ff","html_url":"https://github.com/essteer/unixycle","commit_stats":null,"previous_names":["essteer/unixycle"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/essteer/unixycle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/essteer%2Funixycle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/essteer%2Funixycle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/essteer%2Funixycle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/essteer%2Funixycle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/essteer","download_url":"https://codeload.github.com/essteer/unixycle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/essteer%2Funixycle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28502248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T04:31:57.058Z","status":"ssl_error","status_checked_at":"2026-01-17T04:31:45.816Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bash","filesystem","linux","unix"],"created_at":"2026-01-17T06:26:38.270Z","updated_at":"2026-01-17T06:26:39.004Z","avatar_url":"https://github.com/essteer.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eUNIXycle :recycle:\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003eA recycle bin tool for UNIX.\u003c/p\u003e\n\n## Documentation\n\nUNIXycle provides two scripts — `recycle` \u0026 `restore` — for use in removing files to a recycle bin in the user's `$HOME` directory from where they can later be restored.\n\n### recycle :recycle:\n\nThe `recycle` script creates a `recyclebin` directory and `.restore.info` file in the user's `$HOME` directory (if they do not already exist).\n\nWhen passed file names as arguments, `recycle` moves those target files from their current location to the `recyclebin` with each the unique inode number of each file appended to its name.\n\nRecycled files are recorded in `.restore.info` with their name in `recyclebin` and original absolute file path.\n\nThe `recycle` script accepts optional arguments as follows:\n\n| Option | Mode        | Description                                                                     |\n| :----: | ----------- | ------------------------------------------------------------------------------- |\n|  `-a`  | ASCII       | Displays ASCII art loading screen.                                              |\n|  `-h`  | help       | Displays help and command line options.                                          |\n|  `-i`  | interactive | Issues a prompt before recycling each file.                                     |\n|  `-r`  | recursive   | Accepts directories to recycle their file contents, then deletes the directory. |\n|  `-v`  | verbose     | Outputs a confirmation message for each recycled file.                          |\n\nFile names may include either the absolute or relative paths to the files, and may include wildcard characters to delete multiple files with similar names.\n\nExample — delete a single file in interactive and verbose modes:\n\n```bash\n$ bash recycle -iv demo.txt\nrecycle 'demo.txt'? y/n y\nrecycled 'demo.txt'\n```\n\nExample — delete multiple files:\n\n```bash\n$ bash recycle -iv demo.txt example.doc\nrecycle 'demo.txt'? y/n y\nrecycled 'demo.txt'\nrecycle 'example.doc'? y/n n\n```\n\nExample — delete files with wildcard characters and directory contents with recursion:\n\n```bash\n$ bash recycle -i -r -v *.txt demo_directory\nrecycle 'demo.txt'? y/n y\nrecycled 'demo.txt'\nrecycle 'example.txt'? y/n y\nrecycled 'example.txt'\nrecycle 'demo_directory'? y/n y\nrecycled 'demo_directory/note1.txt'\nrecycled 'demo_directory'\n```\n\n### restore :cyclone:\n\nThe `restore` script accepts a single file name as an argument.\n\nIf the file exists in the `recyclebin`, it is restored to its original location — with parent directories created as needed if they no longer exist.\n\nNote that the `recycle` script appends each file's inode number to the file name when moving them to the `recyclebin`. Check the contents of the `recyclebin` to determine the name of the recycled file to be restored.\n\nExample — restore a previously deleted file:\n\n```bash\n$ bash restore demo.txt_64135\n```\n\n### .restore.info\n\nThis hidden file is created in the user's `$HOME` directory and records the details of files in the `recyclebin`.\n\nThe `restore` script uses this data to recover recycled files, after which their records are removed from this file.\n\n## Tests\n\nA test suite is provided in `tests/` for the `recycle` and `restore` scripts.\n\nRun the tests as follows from the project root directory:\n\n```bash\n$ bash tests/test_recycle\n$ bash tests/test_restore\n```\n\n## Logs\n\nRuntime logs for the `recycle` and `restore` scripts are stored in the `logs` directory as `recycle.log` and `restore.log`, respectively.\n\n## Credits\n\nCredit for the ASCII art recycle logo goes to [Normand Veilleux](http://www.afn.org/~afn39695/veilleux.htm). This program features a slightly revised version of his original design.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fessteer%2Funixycle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fessteer%2Funixycle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fessteer%2Funixycle/lists"}