{"id":19723092,"url":"https://github.com/allenvox/renamer","last_synced_at":"2026-05-15T10:15:16.142Z","repository":{"id":249781176,"uuid":"832535088","full_name":"allenvox/renamer","owner":"allenvox","description":"Simple bash script for renaming input files of the same type","archived":false,"fork":false,"pushed_at":"2024-07-23T08:18:38.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T16:35:24.901Z","etag":null,"topics":["bash","rename","rename-files","script"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":false,"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/allenvox.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-07-23T08:10:48.000Z","updated_at":"2024-07-23T08:18:41.000Z","dependencies_parsed_at":"2024-07-23T10:12:29.003Z","dependency_job_id":"099b38b2-2548-42d7-a6ae-c3fffbeb201e","html_url":"https://github.com/allenvox/renamer","commit_stats":null,"previous_names":["allenvox/renamer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenvox%2Frenamer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenvox%2Frenamer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenvox%2Frenamer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenvox%2Frenamer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allenvox","download_url":"https://codeload.github.com/allenvox/renamer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241044609,"owners_count":19899537,"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","rename","rename-files","script"],"created_at":"2024-11-11T23:19:27.502Z","updated_at":"2026-05-15T10:15:11.082Z","avatar_url":"https://github.com/allenvox.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Renamer - useful bash script for photographers\n![GitHub last commit](https://img.shields.io/github/last-commit/allenvox/renamer)\u003cbr\u003e\n## Features\n- Renames files in ascending order.\n- Allows setting the starting number for renaming.\n- Allows specifying the file type to rename.\n## Usage\n`./renamer.sh -a \u003cstarting_number\u003e -t \u003cfiletype\u003e`\n### Options\n- `-a \u003cstarting_number\u003e`: The number from which the renaming should start.\n- `-t \u003cfiletype\u003e`: The file extension/type to rename without the dot character *(e.g. \"JPG\", not \".JPG\")*.\n### Example\nTo rename all `.JPG` files in the current directory starting from `0001.JPG`, run:\n`./renamer.sh -a 1 -t JPG`\n## Prerequisites\n- Bash shell\n## Installation\n1. Clone the repository or download the script.\n2. Make the script executable:\n`chmod +x renamer.sh`\n## How It Works\nThe script uses the `getopts` command to parse the command-line arguments and then renames files using a loop. The new filenames are generated in the format `XXXX.\u003cfiletype\u003e` where `XXXX` is a zero-padded number starting from the specified `starting_number`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallenvox%2Frenamer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallenvox%2Frenamer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallenvox%2Frenamer/lists"}