{"id":30712144,"url":"https://github.com/meekb/bash-files-organizer","last_synced_at":"2026-05-17T17:03:41.374Z","repository":{"id":312604761,"uuid":"1048038580","full_name":"Meekb/bash-files-organizer","owner":"Meekb","description":"Beginner bash script to organize files by extension","archived":false,"fork":false,"pushed_at":"2025-08-31T20:15:55.000Z","size":55307,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-31T21:25:12.092Z","etag":null,"topics":["bash","bash-script","bash-scripting"],"latest_commit_sha":null,"homepage":"","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/Meekb.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-31T19:24:28.000Z","updated_at":"2025-08-31T20:15:58.000Z","dependencies_parsed_at":"2025-08-31T21:35:17.560Z","dependency_job_id":null,"html_url":"https://github.com/Meekb/bash-files-organizer","commit_stats":null,"previous_names":["meekb/bash-files-organizer"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Meekb/bash-files-organizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meekb%2Fbash-files-organizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meekb%2Fbash-files-organizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meekb%2Fbash-files-organizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meekb%2Fbash-files-organizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Meekb","download_url":"https://codeload.github.com/Meekb/bash-files-organizer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meekb%2Fbash-files-organizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273379476,"owners_count":25095037,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","bash-script","bash-scripting"],"created_at":"2025-09-03T02:27:36.949Z","updated_at":"2026-05-17T17:03:36.351Z","avatar_url":"https://github.com/Meekb.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# File Organizer\n\nA simple Bash script that organizes files by extension.  \nIt moves files from a source folder into subfolders inside a target folder based on their file type.\n\n---\n\n## Table of Contents\n- [About](#about)\n- [Usage](#usage)\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Example](#example)\n\n---\n\n## About\nThe File Organizer helps keep your folders clean by automatically sorting files into subfolders based on their file extensions.  \n\nFor example: `.txt` files go into a `txt/` folder, `.jpg` files into a `jpg/` folder, and files without an extension are placed in `no-ext-files/`.\n\n**Note:** In this demo, files are *copied* from the unorganized folder so the original files remain intact.  \nIn a real usage scenario, you can switch `cp` to `mv` to actually move the files instead of duplicating them.\n\n---\n\n## Usage\n\n```bash\n./files_organizer.sh ./unorganized ./organized\n```\nCreates subfolders like png, pdf, txt, etc.\n\nFiles without an extension are placed in no-ext-files.\n\n####  Safety:\n- The script first `copies` the files from `./unorganized` into `./organized`  \n- Uses `${ORGANIZED:?}` so it will `exit` if the organized path is empty - preventing accidental `rm -rf /*`\n\n## Requirements\n- Bash 4+\n  - macOS 13+ includes this by default\n  - For older macOS: install via Homebrew\n    -  `brew install bash`\n\n## Installation\n### Clone the repository\n- `git clone git@github.com:Meekb/bash-files-organizer.git`\n- `cd bash-file-organizer`\n- Open the `./unorganized` directory and look at the files\n- Open `./files_organizer.sh`\n  - Change the value of `USER` to your username \n\n\n### Make the script executable\n```bash\nchmod +x files_organizer.sh\n```\n\n## Example\n\n### Before\nunorganized/  \n├── document.txt  \n├── photo1.jpeg  \n├── photo2.jpeg  \n├── report.pdf  \n├── script\n\n### Run\n`./files_organizer.sh ./bash_unorganized ./bash_organized\n`\n\n### After\norganized/  \n├── txt/  \n│   └── document.txt  \n├── jpeg/  \n│   ├── photo1.jpeg  \n│   └── photo2.jpeg  \n├── pdf/  \n│   └── report.pdf  \n└── no-ext-files/  \n└── script\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeekb%2Fbash-files-organizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeekb%2Fbash-files-organizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeekb%2Fbash-files-organizer/lists"}