{"id":17383061,"url":"https://github.com/guilhermenobrega/shell-scripting","last_synced_at":"2025-09-12T15:36:17.133Z","repository":{"id":227277715,"uuid":"770971226","full_name":"GuilhermeNobrega/Shell-Scripting","owner":"GuilhermeNobrega","description":"Study Codes","archived":false,"fork":false,"pushed_at":"2025-08-18T14:16:55.000Z","size":64,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-18T16:18:26.128Z","etag":null,"topics":["bash-script","bash-scripting","bourne-again-shell","bourne-shell","bourne-shellscript","ideascripting","ksh","linux","linux-shell","logic-programming","logical-programming","shell-script","shell-scripting","shell-scripts","shellscript","tux-linux","unix"],"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/GuilhermeNobrega.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,"zenodo":null}},"created_at":"2024-03-12T13:14:54.000Z","updated_at":"2025-08-18T14:16:58.000Z","dependencies_parsed_at":"2024-04-22T15:28:54.080Z","dependency_job_id":"f5e162ad-ee57-4fca-913d-7a122ea9d34a","html_url":"https://github.com/GuilhermeNobrega/Shell-Scripting","commit_stats":null,"previous_names":["guilhermenobrega/scriptslinux","guilhermenobrega/shell-scriptinglinux"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GuilhermeNobrega/Shell-Scripting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuilhermeNobrega%2FShell-Scripting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuilhermeNobrega%2FShell-Scripting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuilhermeNobrega%2FShell-Scripting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuilhermeNobrega%2FShell-Scripting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GuilhermeNobrega","download_url":"https://codeload.github.com/GuilhermeNobrega/Shell-Scripting/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuilhermeNobrega%2FShell-Scripting/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274831643,"owners_count":25357883,"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","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"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-script","bash-scripting","bourne-again-shell","bourne-shell","bourne-shellscript","ideascripting","ksh","linux","linux-shell","logic-programming","logical-programming","shell-script","shell-scripting","shell-scripts","shellscript","tux-linux","unix"],"created_at":"2024-10-16T07:40:28.398Z","updated_at":"2025-09-12T15:36:17.123Z","avatar_url":"https://github.com/GuilhermeNobrega.png","language":"Shell","readme":"# 🚀 Introdução ao Shell Scripting\n\nO Shell Scripting é uma poderosa ferramenta que permite a automação de tarefas no sistema operacional usando scripts escritos em shell, como o Bash. Neste tutorial, você aprenderá conceitos básicos e como começar a escrever seus próprios scripts em Shell.\n\n## 🤖 O que é Shell Scripting?\n\nShell Scripting refere-se à escrita de scripts (sequências de comandos) para serem executados no shell do sistema operacional. Os scripts podem conter comandos shell, estruturas de controle de fluxo e variáveis, permitindo automação eficiente de tarefas.\n\n## 📝 Como Escrever um Script Simples\n\nPara começar, crie um arquivo com a extensão `.sh` usando um editor de texto como o `nano` ou `vim`. Por exemplo, `meuscript.sh`.\n\nDê permissão de execução ao seu script:\n\n```bash\n111  rwx (7)\n110  rw- (6)\n101  r-x (5)\n100  r-- (4)\n011  -wx (3)\n010  -w- (2)\n001  --x (1)\n000  --- (0)\n\nou..\n\nchmod +x meuscript.sh\n\n# 📝 Como Escrever um Script Simples\n\nAdicione o seguinte código ao script:\n\n```bash\n#!/bin/bash\n\n# Seu primeiro script em Shell\necho \"Olá, Mundo!\"\n\n# Executar comando\n# Para isso, digite: ./meuscript.sh OU bash meuscript.sh\n\n```\n## ShellCheck\nO ShellCheck é uma ferramenta de análise estática para scripts de shell que ajuda a identificar problemas de estilo, erros de sintaxe e possíveis melhorias de código. Este tutorial abordará a instalação do ShellCheck e seu uso básico.\n\n## Instalação\n\n### Linux (Debian/Ubuntu)\n```\nsudo apt-get install shellcheck\n```\n\n## Utilização\n\n```bash\nshellcheck nome_arquivo.sh\n```\n\n## Debug\n\n```bash\nbash -x nome_do_seu_script.sh\n```\n\n## Documentação\n\n\n\u003cp\u003e\n  \u003ca href=\"https://github.com/koalaman/shellcheck/\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Shellcheck Documentation-blue\" alt=\"Shellcheck Documentation\"\u003e\n  \u003c/a\u003e\n\u003cp\u003e\n  \u003ca href=\"https://www.gnu.org/software/bash/manual/bash.html\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Bash Bash Reference Manual-blue\" alt=\"Bash Bash Reference Manual\"\u003e\n  \u003c/a\u003e\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguilhermenobrega%2Fshell-scripting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguilhermenobrega%2Fshell-scripting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguilhermenobrega%2Fshell-scripting/lists"}