{"id":22725139,"url":"https://github.com/miladev95/shell-scripts","last_synced_at":"2026-04-22T21:35:43.842Z","repository":{"id":154115613,"uuid":"219716585","full_name":"miladev95/shell-scripts","owner":"miladev95","description":"Small and useful shell scripts","archived":false,"fork":false,"pushed_at":"2023-04-17T07:39:11.000Z","size":2527,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T23:24:33.654Z","etag":null,"topics":["bash","bash-script","shell","shell-script"],"latest_commit_sha":null,"homepage":null,"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/miladev95.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}},"created_at":"2019-11-05T10:19:52.000Z","updated_at":"2024-04-17T22:23:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"d975021f-6c7c-4ae5-957e-330e8d8e97a2","html_url":"https://github.com/miladev95/shell-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/miladev95/shell-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miladev95%2Fshell-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miladev95%2Fshell-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miladev95%2Fshell-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miladev95%2Fshell-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miladev95","download_url":"https://codeload.github.com/miladev95/shell-scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miladev95%2Fshell-scripts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262212895,"owners_count":23276005,"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","bash-script","shell","shell-script"],"created_at":"2024-12-10T15:09:17.625Z","updated_at":"2026-04-22T21:35:43.830Z","avatar_url":"https://github.com/miladev95.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My Useful Shell Scripts\n\nA collection of useful bash scripts for various system tasks, file operations, and utilities.\n\n## Table of Contents\n- [Color Display](#color-display)\n- [File Extractor](#file-extractor)\n- [Number Converters](#number-converters)\n- [Persian Plate Finder](#persian-plate-finder)\n- [Weather Report](#weather-report)\n- [File Renamer](#file-renamer)\n- [Abbreviation Lookup](#abbreviation-lookup)\n- [System Information](#system-information)\n- [Network Information Collector](#network-information-collector)\n- [Input Validation](#input-validation)\n\n---\n\n## Color Display\nDisplay colorful text animations in the terminal.\n\n**Location:** `color.sh`\n\n**Usage:**\n```bash\n./color.sh\n```\n\n**Description:** Displays the word \"LOVE\" in different colors with a 1-second delay between each color.\n\n---\n\n## File Extractor\nExtract various compressed file formats with a single command.\n\n**Location:** `extractor/extractor.sh`\n\n**Usage:**\n```bash\n./extractor/extractor.sh \u003cfilename\u003e\n```\n\n**Examples:**\n```bash\n./extractor/extractor.sh mar-tools-linux32.zip\n./extractor/extractor.sh archive.tar.gz\n./extractor/extractor.sh data.7z\n```\n\n**Supported formats:** tar, tar.gz, tar.bz2, tar.xz, zip, rar, 7z, gz, bz2, dmg, pax, and more.\n\n---\n\n## Number Converters\nConvert numbers between different numeral systems.\n\n**Location:** `converters/`\n\n### Binary to Decimal\n**Usage:**\n```bash\n./converters/binary2decimal.sh\n# Enter a binary number when prompted\n```\n\n**Example:**\n```bash\n./converters/binary2decimal.sh\nEnter a number:\n1010\n10\n```\n\n### Decimal to Binary\n**Usage:**\n```bash\n./converters/decimal2binary.sh \u003cnumber1\u003e [number2] [number3] ...\n```\n\n**Example:**\n```bash\n./converters/decimal2binary.sh 10 25 100\n```\n\n### Decimal to Hexadecimal\n**Usage:**\n```bash\n./converters/dec2hex.sh \u003cdecimal_number\u003e\n```\n\n**Example:**\n```bash\n./converters/dec2hex.sh 255\n0xff\n```\n\n### Hexadecimal to Decimal\n**Usage:**\n```bash\n./converters/hextodec.sh \u003chex_number\u003e\n```\n\n**Example:**\n```bash\n./converters/hextodec.sh 0xff\n255\n```\n\n---\n\n## Persian Plate Finder\nFind Iranian car plate information by plate number and letter.\n\n**Location:** `plate-finder/plate-finder.sh`\n\n**Usage:**\n```bash\n./plate-finder/plate-finder.sh \u003cnumber\u003e [letter]\n./plate-finder/plate-finder.sh -h    # For help\n```\n\n**Examples:**\n```bash\n./plate-finder/plate-finder.sh 78 ن\n./plate-finder/plate-finder.sh 61 ج\n./plate-finder/plate-finder.sh 78    # Search by number only\n```\n\n**Note:** Requires `plate.txt` file in the same directory.\n\n---\n\n## Weather Report\nGet weather information for any location using wttr.in service.\n\n**Location:** `weather/weather.sh`\n\n**Usage:**\n```bash\n./weather/weather.sh                    # Default location\n./weather/weather.sh -l \u003clocation\u003e      # Specific location\n./weather/weather.sh --location \u003ccity\u003e  # Specific location\n./weather/weather.sh -h                 # Help\n```\n\n**Examples:**\n```bash\n./weather/weather.sh --location tehran\n./weather/weather.sh -l london\n./weather/weather.sh -l \"new york\"\n```\n\n---\n\n## File Renamer\nRename all files and directories in the current directory by adding a prefix or replacing text.\n\n**Location:** `renamer/renamer.sh`\n\n**Usage:**\n```bash\n./renamer/renamer.sh \u003cprefix\u003e              # Add prefix to all files\n./renamer/renamer.sh \u003cold_text\u003e \u003cnew_text\u003e # Replace text in filenames\n./renamer/renamer.sh -h                     # Help\n```\n\n**Examples:**\n```bash\n./renamer/renamer.sh python_      # Add \"python_\" prefix to all files\n./renamer/renamer.sh test_ prod_  # Replace \"test_\" with \"prod_\" in all filenames\n```\n\n**Warning:** Use with caution! Always backup your files before running this script.\n\n---\n\n## Abbreviation Lookup\nLook up computer science abbreviations and their meanings.\n\n**Location:** `abbreviation/abbreviation.sh`\n\n**Usage:**\n```bash\n./abbreviation/abbreviation.sh \u003cabbreviation\u003e\n```\n\n**Examples:**\n```bash\n./abbreviation/abbreviation.sh csrf\n./abbreviation/abbreviation.sh www\n./abbreviation/abbreviation.sh api\n```\n\n**Note:** Requires `abbreviation.txt` file with abbreviation definitions in the same directory.\n\n---\n\n## System Information\nGet detailed system information through interactive menus.\n\n**Location:** `sys-info/`\n\n### Menu-Driven System Info\n**Usage:**\n```bash\n./sys-info/menu-driven-sys-info.sh\n```\n\n**Features:**\n- Display system information (hostname, uptime)\n- Display disk space usage\n- Display home directory space utilization\n- Interactive menu interface\n\n### Hardware Machine Info\n**Usage:**\n```bash\n./sys-info/hardware-machine.sh\n```\n\n**Features:**\n- Check desktop processor\n- Verify system kernel\n- List installed software\n- Check OS version\n- Verify desktop memory\n- Check serial number\n- Verify system IP\n- Interactive menu interface\n\n---\n\n## Network Information Collector\nCollect comprehensive network configuration and save to a file.\n\n**Location:** `networkinfo/collectnetworkinfo.sh`\n\n**Usage:**\n```bash\nsudo ./networkinfo/collectnetworkinfo.sh\n```\n\n**Description:** Collects detailed network information including:\n- Network interfaces configuration\n- Routing tables\n- Firewall rules\n- DNS configuration\n- Network driver information\n\n**Output:** Creates a file named `network.[date].info.txt` with all collected information.\n\n**Note:** Requires root privileges to run.\n\n---\n\n## Input Validation\nValidate user input to ensure it contains only alphanumeric characters.\n\n**Location:** `validations/number-letter-validation.sh`\n\n**Usage:**\n```bash\n./validations/number-letter-validation.sh\n# Enter input when prompted\n```\n\n**Description:** Validates that input consists only of letters (a-z, A-Z) and numbers (0-9).\n\n---\n\n## Requirements\n\nMost scripts require:\n- Bash shell (version 4.0+)\n- Standard Unix utilities (sed, awk, cut, etc.)\n\nSome scripts may require additional tools:\n- `curl` - for weather.sh\n- `7z` - for extracting .rar and .7z files\n- Root access - for network information collector\n\n## Installation\n\n1. Clone or download this repository\n2. Make scripts executable:\n```bash\nchmod +x **/*.sh\nchmod +x color.sh\n```\n\n3. Run any script using the instructions above\n\n## Contributing\n\nFeel free to contribute by adding new scripts or improving existing ones!\n\n## License\n\nFree to use and modify.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiladev95%2Fshell-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiladev95%2Fshell-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiladev95%2Fshell-scripts/lists"}