{"id":18368957,"url":"https://github.com/claudio-code/learning-shell-script","last_synced_at":"2025-10-14T00:05:04.146Z","repository":{"id":115886612,"uuid":"365685548","full_name":"Claudio-code/learning-shell-script","owner":"Claudio-code","description":"I am learning how to make all magics :dizzy: for automations using bash.","archived":false,"fork":false,"pushed_at":"2022-12-17T23:33:34.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T20:54:11.542Z","etag":null,"topics":["automation","magics","shell-script"],"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/Claudio-code.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":"2021-05-09T06:41:03.000Z","updated_at":"2022-01-20T23:56:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"67d1c525-c8a8-4d95-a1f2-b73d5fe5c3c1","html_url":"https://github.com/Claudio-code/learning-shell-script","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Claudio-code%2Flearning-shell-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Claudio-code%2Flearning-shell-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Claudio-code%2Flearning-shell-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Claudio-code%2Flearning-shell-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Claudio-code","download_url":"https://codeload.github.com/Claudio-code/learning-shell-script/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281425,"owners_count":21077423,"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":["automation","magics","shell-script"],"created_at":"2024-11-05T23:27:59.466Z","updated_at":"2025-10-14T00:04:59.117Z","avatar_url":"https://github.com/Claudio-code.png","language":"Shell","readme":"\u003ch2 align=\"center\"\u003e\n  :penguin: Shell Script :penguin:\n\u003c/h2\u003e\n\n## About Project\n\nIts project has the objective of expanding my arcane powers in the shell script art :scroll:.\n\n---------------------------------------------------------------------------------------\n### String\n\n| Comparison of strings  |  Description  |\n| ------------------- | ------------------- |\n|  string1 = string2 |  return true if strings are equals |\n|  string1 != string2 |  return true if strings not is equals |\n|  -n string1 |  return true if string not null |\n|  -z string1 |  return true if string is null |\n---------------------------------------------------------------------------------------\n\n### Number\n\n| Comparison of number  |  Description  |\n| ------------------- | ------------------- |\n|  expr1 -eq expr2 |  return true if values is equals |\n|  expr1 -ne expr2 |  return true if values not is equals |\n|  expr1 -gt expr2 |  return true if expr1 is greater of expr2 |\n|  expr1 -ge expr2 |  return true if expr1 is greater or equals of expr2 |\n|  expr1 -lt expr2 |  return true if expr1 is less of expr2 |\n|  expr1 -le expr2 |  return true if expr1 is less or equals of expr2 |\n|  ! expr1 |  negate result of expression (if result is true turn false) |\n---------------------------------------------------------------------------------------\n\n### Files\n\n| Comparison of files  |  Description  |\n| ------------------- | ------------------- |\n|  -d file |  return if it is a directory |\n|  -e file |  return true if it is file exist |\n|  -f file |  return true if it is file exist (more used because it is more portable) |\n|  -g file |  return true GID is enabled in file |\n|  -r file |  return true if it is file have read permission |\n|  -s file |  return true if it is file have bigger size different of zero |\n|  -u | return true if UID is enabled file |\n|  -w | return true if file have write permission |\n|  -x | return true if file have execution permission |\n\n### Simple colors table\n\n| color name  |  value  |\n| ----------- | ------- |\n| Color_Off | '\\033[0m' |\n| Black | '\\033[0;30m'  |\n| Red | '\\033[0;31m'    |\n| Green | '\\033[0;32m'  |\n| Yellow | '\\033[0;33m' |\n| Blue | '\\033[0;34m'   |\n| Purple | '\\033[0;35m' |\n| Cyan | '\\033[0;36m'   |\n| White | '\\033[0;37m'  |\n| BBlack | '\\033[1;30m' |\n| BRed | '\\033[1;31m'   |\n| BGreen | '\\033[1;32m' |\n| BYellow | '\\033[1;33m'|\n| BBlue | '\\033[1;34m'  |\n| BPurple | '\\033[1;35m'|\n| BCyan | '\\033[1;36m'  |\n| BWhite | '\\033[1;37m' |\n| UBlack | '\\033[4;30m' |\n| URed | '\\033[4;31m'   |\n| UGreen | '\\033[4;32m' |\n| UYellow | '\\033[4;33m'|\n| UBlue | '\\033[4;34m'  |\n| UPurple | '\\033[4;35m'|\n| UCyan | '\\033[4;36m'  |\n| UWhite | '\\033[4;37m' |\n| On_Black | '\\033[40m' |\n| On_Red | '\\033[41m'   |\n| On_Green | '\\033[42m' |\n| On_Yellow | '\\033[43m'|\n| On_Blue | '\\033[44m'  |\n| On_Purple | '\\033[45m'|\n| On_Cyan | '\\033[46m'  |\n| On_White | '\\033[47m' |\n| IBlack | '\\033[0;90m' |\n| IRed | '\\033[0;91m'   |\n| IGreen | '\\033[0;92m' |\n| IYellow | '\\033[0;93m'|\n| IBlue | '\\033[0;94m'  |\n| IPurple | '\\033[0;95m'|\n| ICyan | '\\033[0;96m'  |\n| IWhite | '\\033[0;97m' |\n| BIBlack | '\\033[1;90m'|\n| BIRed | '\\033[1;91m'  |\n| BIGreen | '\\033[1;92m'|\n| BIYellow | '\\033[1;93m|\n| BIBlue | '\\033[1;94m' |\n| BIPurple | '\\033[1;95m|\n| BICyan | '\\033[1;96m' |\n| BIWhite | '\\033[1;97m'|\n| On_IBlack | '\\033[0;10|\n| On_IRed | '\\033[0;101m|\n| On_IGreen | '\\033[0;10|\n| On_IYellow | '\\033[0;1|\n| On_IBlue | '\\033[0;104|\n| On_IPurple | '\\033[0;1|\n| On_ICyan | '\\033[0;106|\n| On_IWhite | '\\033[0;10|\n\n---------------------------------------------------------------------------------------\n\n### Two types of operators\n\n#### Control operators\n| name  |  value  |\n| ----------- | ------- |\n| newline | (semicolon\\|newline) command delimiter operator |\n| \\| | shell data processing - Pipe (command to command redirection) |\n| \u0026 | Bash - ampresand (\u0026) - (Asynchronous\\|Parallel) control operator |\n| \u0026\u0026 | Shell - \u0026\u0026 - AND boolean operator |\n| \\|\\| | Shell - \\|\\| - OR boolean operator |\n| ; | Shell - (semicolon\\|newline) command delimiter operator |\n| ( | Block definition |\n| ) | Block definition |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclaudio-code%2Flearning-shell-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclaudio-code%2Flearning-shell-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclaudio-code%2Flearning-shell-script/lists"}