{"id":24716888,"url":"https://github.com/samyam81/bash","last_synced_at":"2026-04-18T09:33:13.145Z","repository":{"id":238992506,"uuid":"798170693","full_name":"samyam81/Bash","owner":"samyam81","description":"Bash: A command-line shell and scripting language used for executing commands and automating tasks in Unix-like operating systems.","archived":false,"fork":false,"pushed_at":"2024-05-20T06:58:12.000Z","size":7,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-20T08:55:10.698Z","etag":null,"topics":["bash","shell"],"latest_commit_sha":null,"homepage":"","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/samyam81.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":"2024-05-09T08:30:38.000Z","updated_at":"2024-06-23T12:08:12.000Z","dependencies_parsed_at":"2024-05-09T10:58:24.610Z","dependency_job_id":"070d5d84-8d48-42d5-9fc0-75c39dbf35ba","html_url":"https://github.com/samyam81/Bash","commit_stats":null,"previous_names":["samyam81/bash"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samyam81/Bash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyam81%2FBash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyam81%2FBash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyam81%2FBash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyam81%2FBash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samyam81","download_url":"https://codeload.github.com/samyam81/Bash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyam81%2FBash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31963966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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"],"created_at":"2025-01-27T09:14:32.163Z","updated_at":"2026-04-18T09:33:13.131Z","avatar_url":"https://github.com/samyam81.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\n\n# Text Processing Commands README\n\nThis README file provides an overview of various text processing commands and their usage in the context of `file.txt` and `words.txt`.\n\n## 1. grep Command\n\nThe `grep` command is a powerful tool for searching patterns within text files. The following command searches for phone numbers in the format `(###) ###-####` or `###-###-####` in `file.txt`.\n\nThis command utilizes the `-E` flag to enable extended regular expressions for complex pattern matching.\n\n## 2. sed Command\n\nThe `sed` command is used for text stream editing. The following command prints the 10th line of `file.txt`.\n\nThe `-n` option suppresses automatic printing of pattern space, and `10p` prints the 10th line.\n\n## 3. Bash Loop\n\nThe `for` loop in Bash iterates over words in the first line of `file.txt`, printing each word on a separate line.\n\nThis loop extracts each word from the first line and prints them individually.\n\n## 4. Text Transformation Pipeline\n\nThe following command processes the content of `words.txt` to count and display unique words with their frequencies.\n\n- `tr -s ' ' '\\n'`: Translates spaces to newlines, ensuring each word is on its own line.\n- `sort`: Sorts the words alphabetically.\n- `uniq -c`: Counts the occurrences of each unique word.\n- `sort -r`: Sorts the words by count in descending order.\n- `awk '{ print $2, $1 }'`: Prints the word followed by its count.\n\nFeel free to modify and expand upon these commands as needed for your specific use case. If you have any questions or need further assistance, please refer to the documentation of each command or seek help from your system administrator.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamyam81%2Fbash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamyam81%2Fbash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamyam81%2Fbash/lists"}