{"id":20694731,"url":"https://github.com/gasinan/recycle-bin","last_synced_at":"2026-04-27T18:32:27.316Z","repository":{"id":261912596,"uuid":"885705842","full_name":"GasinAn/recycle-bin","owner":"GasinAn","description":"Simple and Stupid Linux Bash Recycle Bin","archived":false,"fork":false,"pushed_at":"2024-12-02T08:07:37.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-17T11:09:05.159Z","etag":null,"topics":["bash","linux","recycle-bin"],"latest_commit_sha":null,"homepage":"","language":null,"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/GasinAn.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,"zenodo":null}},"created_at":"2024-11-09T07:02:51.000Z","updated_at":"2024-12-02T08:07:41.000Z","dependencies_parsed_at":"2024-11-09T08:17:23.646Z","dependency_job_id":"59f4e573-d7c3-4025-a572-a0d7adc016f0","html_url":"https://github.com/GasinAn/recycle-bin","commit_stats":null,"previous_names":["gasinan/recycle-bin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GasinAn/recycle-bin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GasinAn%2Frecycle-bin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GasinAn%2Frecycle-bin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GasinAn%2Frecycle-bin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GasinAn%2Frecycle-bin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GasinAn","download_url":"https://codeload.github.com/GasinAn/recycle-bin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GasinAn%2Frecycle-bin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260346877,"owners_count":22995151,"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":["bash","linux","recycle-bin"],"created_at":"2024-11-17T00:06:12.381Z","updated_at":"2026-04-27T18:32:27.281Z","avatar_url":"https://github.com/GasinAn.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# recycle-bin\nSimple and Stupid Linux Bash Recycle Bin\n\n```bash\ndel() {\n    while [ $# -gt 0 ]; do\n        oldpath=$(realpath -s \"$1\")\n        olddir=$(dirname \"$oldpath\")\n        oldname=$(basename \"$oldpath\")\n        newdir=~/.recycle_bin/$(date -I)\n        newname=$(date -Ins)-\"$oldname\"\n        mvbksh=$newdir/.mvbk.\"$newname\".sh\n\n        mkdir -p $newdir\n        mv \"$1\" $newdir/\"$newname\"\n\n        mvbksh_lines=(\n            \"#!/bin/bash\"\n            \"\"\n            \"set -e\"\n            \"\"\n            \"if [ -e '$olddir/$oldname' ]; then\"\n            \"    echo '\\\"$olddir/$oldname\\\" exists!'\"\n            \"    echo 'Fail to move back.'\"\n            \"    exit 1\"\n            \"fi\"\n            \"\"\n            \"mkdir -p '$olddir'\"\n            \"mv '$newdir/$newname' '$olddir/$oldname'\"\n            \"rm '$mvbksh'\"\n        )\n        printf \"%s\\n\" \"${mvbksh_lines[@]}\" \u003e \"$mvbksh\"\n        chmod u+x \"$mvbksh\"\n\n        shift\n    done\n}\n```\n\n## License\n\n[GLWT(Good Luck With That) Public License](https://github.com/GasinAn/recycle-bin/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgasinan%2Frecycle-bin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgasinan%2Frecycle-bin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgasinan%2Frecycle-bin/lists"}