{"id":19853878,"url":"https://github.com/magnetikonline/make-lowercase-rename","last_synced_at":"2026-05-11T01:14:08.899Z","repository":{"id":6872581,"uuid":"8121630","full_name":"magnetikonline/make-lowercase-rename","owner":"magnetikonline","description":"Hacky PHP utility that spits out bash scripts that recursively rename upper-cased filenames to lowercase.","archived":false,"fork":false,"pushed_at":"2022-02-03T00:44:41.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-11T13:45:42.788Z","etag":null,"topics":["bash","hacky","lowercase","php","utility"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/magnetikonline.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}},"created_at":"2013-02-10T11:06:37.000Z","updated_at":"2022-02-03T00:44:26.000Z","dependencies_parsed_at":"2022-08-26T10:11:34.961Z","dependency_job_id":null,"html_url":"https://github.com/magnetikonline/make-lowercase-rename","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/magnetikonline%2Fmake-lowercase-rename","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magnetikonline%2Fmake-lowercase-rename/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magnetikonline%2Fmake-lowercase-rename/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magnetikonline%2Fmake-lowercase-rename/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magnetikonline","download_url":"https://codeload.github.com/magnetikonline/make-lowercase-rename/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241243714,"owners_count":19933180,"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","hacky","lowercase","php","utility"],"created_at":"2024-11-12T14:07:57.941Z","updated_at":"2026-05-11T01:14:08.857Z","avatar_url":"https://github.com/magnetikonline.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Make lowercase rename\n\nQuick, dirty and *hacky* PHP script (with a terrible project name).\n\nGiven a source directory, spits out to the console a bash script to recursively rename uppercase filenames to lowercased versions - basically a bunch of `mv \"sourcefile\" \"sourcefilelowercase\"` commands. It **will not** modify directories, only the files within.\n\nSomething I needed to lowercase around 30,000 digital camera images on a NAS drive which has a rather limited toolchain (BusyBox).\n\nI'm sure I could have done this directly on the NAS using bash, but it proved easier/quicker to:\n\n- Cobble this together\n- Run script over NFS share to the files in question\n- SCP result over to NAS as bash script\n- Run bash script directly on the NAS from it's BusyBox shell\n\nThis will be little to *zero* use for anyone else but me.\n\nTested under PHP 7.2.x.\n\n## Usage\n\n**Note:** The second optional argument `--move-temp` will first move the source file to a temp filename, then back to it's final lowercased filename. This defeats issues with broken filesystems, such as FAT32:\n\n```sh\n$ ./makelowercaserename.php \\\n  \"/path/to/files\" [--move-temp] \u003e\"/path/to/outbash.sh\"\n```\n\nOr pass in an alternative command for `mv` via `MVCMD`:\n\n```sh\n$ MVCMD=\"git mv\" \\\n  ./makelowercaserename.php \\\n  \"/path/to/files\" [--move-temp] \u003e\"/path/to/outbash.sh\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagnetikonline%2Fmake-lowercase-rename","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagnetikonline%2Fmake-lowercase-rename","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagnetikonline%2Fmake-lowercase-rename/lists"}