{"id":15357917,"url":"https://github.com/mefengl/awsome-shell","last_synced_at":"2026-01-19T21:32:59.011Z","repository":{"id":119726501,"uuid":"574443659","full_name":"mefengl/Awsome-Shell","owner":"mefengl","description":"some shell script to use and learn from it","archived":false,"fork":false,"pushed_at":"2022-12-05T10:26:47.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T22:11:38.503Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/mefengl.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":"2022-12-05T10:24:18.000Z","updated_at":"2022-12-05T10:24:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"c0d25719-299b-4b21-b401-674e4f861d16","html_url":"https://github.com/mefengl/Awsome-Shell","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"af83d92a4f998b9173febd956aa3dfde3ae52191"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mefengl/Awsome-Shell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mefengl%2FAwsome-Shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mefengl%2FAwsome-Shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mefengl%2FAwsome-Shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mefengl%2FAwsome-Shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mefengl","download_url":"https://codeload.github.com/mefengl/Awsome-Shell/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mefengl%2FAwsome-Shell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28585510,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T20:45:59.482Z","status":"ssl_error","status_checked_at":"2026-01-19T20:45:41.500Z","response_time":67,"last_error":"SSL_read: 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":[],"created_at":"2024-10-01T12:39:33.717Z","updated_at":"2026-01-19T21:32:58.987Z","avatar_url":"https://github.com/mefengl.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Awsome-Shell\nsome shell script to use and learn from it\n\n## -h example\n\n```bash\n#!/bin/bash\n\n# Display usage information and examples\ndisplay_help() {\n  echo \"Usage: $0 fromExt toExt\"\n  echo\n  echo \"Renames all files with the specified fromExt extension to have the specified toExt extension\"\n  echo\n  echo \"Examples:\"\n  echo \"  $0 \\\".ts\\\" \\\".cs\\\"  # Renames all .ts files to .cs files\"\n  echo \"  $0 \\\".js\\\" \\\".ts\\\"  # Renames all .js files to .ts files\"\n  echo \"  $0 \\\".txt\\\" \\\".md\\\"  # Renames all .txt files to .md files\"\n}\n\n# Check if the correct number of arguments was provided\nif [ \"$#\" -ne 2 ]; then\n  echo \"Error: Invalid number of arguments\" \u003e\u00262\n  display_help\n  exit 1\nfi\n\n# Check if the -h or --help option was provided\nif [ \"$1\" = \"-h\" ] || [ \"$1\" = \"--help\" ]; then\n  display_help\n  exit 0\nfi\n```\n\n## batch_rename\n\n```bash\n# Assign the arguments to variables\nfromExt=$1\ntoExt=$2\n\n# Rename the files\nfor file in *\"$fromExt\"; do mv \"$file\" \"${file%$fromExt}$toExt\"; done\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmefengl%2Fawsome-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmefengl%2Fawsome-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmefengl%2Fawsome-shell/lists"}