Skip to content

anissafia90/alx-system_engineering-devops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

0x04. Loops, conditions and parsing DevOps Shell Bash Scripting By: Sylvain Kalache Weight: 1 Project will start Oct 13, 2022 6:00 AM, must end by Oct 14, 2022 6:00 AM will be released at Oct 13, 2022 12:00 PM An auto review will be launched at the deadline About Bash projects Unless stated, all your projects will be auto-corrected with Ubuntu 20.04 LTS.

Background Context

Resources Read or watch:

Loops sample Variable assignment and arithmetic Comparison operators File test operators Make your scripts portable man or help:

env cut for while until if Learning Objectives At the end of this project, you are expected to be able to explain to anyone, without the help of Google:

General How to create SSH keys What is the advantage of using #!/usr/bin/env bash over #!/bin/bash How to use while, until and for loops How to use if, else, elif and case condition statements How to use the cut command What are files and other comparison operators, and how to use them Requirements General Allowed editors: vi, vim, emacs All your files will be interpreted on Ubuntu 20.04 LTS All your files should end with a new line A README.md file, at the root of the folder of the project, is mandatory All your Bash script files must be executable You are not allowed to use awk Your Bash script must pass Shellcheck (version 0.7.0) without any error The first line of all your Bash scripts should be exactly #!/usr/bin/env bash The second line of all your Bash scripts should be a comment explaining what is the script doing Copyright - Plagiarism You are tasked to come up with solutions for the tasks below yourself to meet with the above learning objectives. You will not be able to meet the objectives of this or any following project by copying and pasting someone else’s work. You are not allowed to publish any content of this project. Any form of plagiarism is strictly forbidden and will result in removal from the program. More Info Shellcheck Shellcheck is a tool that will help you write proper Bash scripts. It will make recommendations on your syntax and semantics and provide advice on edge cases that you might not have thought about. Shellcheck is your friend! All your Bash scripts must pass Shellcheck without any error or you will not get any points on the task.

Shellcheck is available on the school’s computers. If you want to use it on your own computer, here is how to install it.

Examples:

Not passing Shellcheck

About

alx-system_engineering-devops

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published