{"id":23116301,"url":"https://github.com/nabilshadman/bash-automation-scripts","last_synced_at":"2026-04-27T18:31:44.999Z","repository":{"id":176914061,"uuid":"374142398","full_name":"nabilshadman/bash-automation-scripts","owner":"nabilshadman","description":"A sample of Bash scripts to automate time-consuming administration tasks on systems","archived":false,"fork":false,"pushed_at":"2024-12-04T19:07:08.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-21T10:03:47.945Z","etag":null,"topics":["bash","shell-scripting"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/nabilshadman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2021-06-05T15:01:50.000Z","updated_at":"2024-12-04T19:07:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"8af92dcb-d0ac-4566-b5b7-5c1a99228b3c","html_url":"https://github.com/nabilshadman/bash-automation-scripts","commit_stats":null,"previous_names":["nabilshadman/bash-automation-scripts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nabilshadman/bash-automation-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nabilshadman%2Fbash-automation-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nabilshadman%2Fbash-automation-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nabilshadman%2Fbash-automation-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nabilshadman%2Fbash-automation-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nabilshadman","download_url":"https://codeload.github.com/nabilshadman/bash-automation-scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nabilshadman%2Fbash-automation-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32349394,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T17:12:42.749Z","status":"ssl_error","status_checked_at":"2026-04-27T17:12:41.658Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["bash","shell-scripting"],"created_at":"2024-12-17T04:15:57.947Z","updated_at":"2026-04-27T18:31:44.971Z","avatar_url":"https://github.com/nabilshadman.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bash Automation Scripts\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n![Bash](https://img.shields.io/badge/Bash-4.0%2B-brightgreen)\n![Shell Script](https://img.shields.io/badge/Shell_Script-v1.0-blue)\n![Platform](https://img.shields.io/badge/Platform-Unix--like-lightgrey) \n\nA collection of practical Bash scripts designed to automate common system administration tasks on Unix-like systems.\n\n## Overview\n\nThis repository contains a set of carefully crafted Bash scripts that demonstrate various automation techniques for system administration tasks. Each script is designed with error handling and user interaction in mind, following shell scripting best practices.\n\n## Scripts\n\n### cr.sh - Script Creator\nA utility script that streamlines the creation of new Bash scripts with proper permissions and shebang.\n\n**Features:**\n- Automatic addition of shebang line (`#!/bin/bash`)\n- File existence checking with conflict resolution\n- Interactive overwrite protection\n- Automatic execution permission setting\n- Opens the new script in vim for immediate editing\n\n**Usage:**\n```bash\n./cr.sh scriptname\n```\n\n### finderrors.sh - Log Error Parser\nA script designed to extract and analyze error messages from log files.\n\n**Features:**\n- Parses log files for error entries\n- Extracts component information from error messages\n- Creates a summary of errors by component\n\n**Usage:**\n```bash\n./finderrors.sh\n```\n\n**Note:** Currently configured to read from a file named `samplelog`\n\n### findrecent.sh - Recent File Finder\nLocates and copies recently modified text files to a designated directory.\n\n**Features:**\n- Searches for files modified within the last 24 hours\n- Filters for .txt files (case-insensitive)\n- Automatically creates output directory if it doesn't exist\n- Preserves original files while creating copies\n\n**Usage:**\n```bash\n./findrecent.sh\n```\n\n**Note:** Default search directory is `/home/username/Downloads`\n\n## Installation\n\n1. Clone this repository:\n```bash\ngit clone [repository-url]\ncd bash-automation-scripts\n```\n\n2. Make scripts executable:\n```bash\nchmod +x *.sh\n```\n\n## Configuration\n\nBefore using the scripts, you may want to modify:\n- Search directory in `findrecent.sh` (`SEARCH_DIR` variable)\n- Log file name in `finderrors.sh` (`LOGFILE` variable)\n\n## Requirements\n\n- Bash shell (version 4.0 or later recommended)\n- Standard Unix utilities (find, grep, awk, etc.)\n- vim text editor (for cr.sh)\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](./LICENSE.txt) file for details.\n\n## Acknowledgments\n\n- Inspired by common system administration tasks\n- Built with shell scripting best practices in mind\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnabilshadman%2Fbash-automation-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnabilshadman%2Fbash-automation-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnabilshadman%2Fbash-automation-scripts/lists"}