Skip to content

Main #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Main #18

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion create-resource-group/create_resource_group
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ list_resource_groups() {
az group list -o table
}

# setup
setup
check_region
check_resource_group
create_resource_group
Expand Down
9 changes: 9 additions & 0 deletions redirection-and-pipelines/error.txt
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
ls: cannot access './dir': No such file or directory
total 24
-rw-rw-rw- 1 vscode root 53 Oct 3 00:20 error.txt
-rw-rw-rw- 1 vscode root 390 Oct 1 00:23 output2.txt
-rw-rw-rw- 1 vscode root 862 Oct 3 00:15 output.txt
-rw-rw-rw- 1 vscode root 677 Oct 1 00:23 paragrah.txt
-rw-rw-rw- 1 vscode root 415 Oct 1 00:23 part1.txt
-rw-rw-rw- 1 vscode root 262 Oct 1 00:23 part2.txt
-rw-rw-rw- 1 vscode root 0 Oct 3 00:14 part3.txt
-rw-rw-rw- 1 vscode root 0 Oct 3 00:15 part4.txt
25 changes: 18 additions & 7 deletions redirection-and-pipelines/output.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
total 8
-rw-rw-rw- 1 vscode vscode 0 Jan 17 18:03 error.txt
-rw-rw-rw- 1 vscode vscode 0 Jan 17 18:10 output.txt
-rw-rw-rw- 1 vscode vscode 415 Jan 17 17:37 part1.txt
-rw-rw-rw- 1 vscode vscode 262 Jan 17 17:37 part2.txt
-rw-rw-rw- 1 vscode vscode 0 Jan 17 17:54 part3.txt
-rw-rw-rw- 1 vscode vscode 0 Jan 17 17:56 part4.txt
total 20
-rw-rw-rw- 1 vscode root 53 Oct 1 00:23 error.txt
-rw-rw-rw- 1 vscode root 390 Oct 1 00:23 output2.txt
-rw-rw-rw- 1 vscode root 0 Oct 3 00:14 output.txt
-rw-rw-rw- 1 vscode root 677 Oct 1 00:23 paragrah.txt
-rw-rw-rw- 1 vscode root 415 Oct 1 00:23 part1.txt
-rw-rw-rw- 1 vscode root 262 Oct 1 00:23 part2.txt
-rw-rw-rw- 1 vscode root 0 Oct 3 00:14 part3.txt
-rw-rw-rw- 1 vscode root 0 Oct 1 00:23 part4.txt
total 24
-rw-rw-rw- 1 vscode root 53 Oct 1 00:23 error.txt
-rw-rw-rw- 1 vscode root 390 Oct 1 00:23 output2.txt
-rw-rw-rw- 1 vscode root 431 Oct 3 00:14 output.txt
-rw-rw-rw- 1 vscode root 677 Oct 1 00:23 paragrah.txt
-rw-rw-rw- 1 vscode root 415 Oct 1 00:23 part1.txt
-rw-rw-rw- 1 vscode root 262 Oct 1 00:23 part2.txt
-rw-rw-rw- 1 vscode root 0 Oct 3 00:14 part3.txt
-rw-rw-rw- 1 vscode root 0 Oct 3 00:15 part4.txt
5 changes: 5 additions & 0 deletions redirection-and-pipelines/paragraph.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Mauris pharetra et ultrices neque ornare aenean euismod. Adipiscing enim eu turpis egestas pretium aenean pharetra magna ac. Nibh nisl condimentum id venenatis a condimentum. Interdum velit euismod in pellentesque massa placerat. Ac feugiat sed lectus vestibulum mattis ullamcorper velit.
Libero justo laoreet sit amet cursus sit amet dictum sit. Pharetra vel turpis nunc eget lorem dolor sed.
Ultrices neque ornare aenean euismod elementum nisi quis eleifend quam. Laoreet id donec ultrices tincidunt.
Pulvinar sapien et ligula ullamcorper malesuada.
Empty file modified what-are-case-statements/case_statement
100644 → 100755
Empty file.
4 changes: 3 additions & 1 deletion what-are-conditional-statements/is_number_even
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

number=25
# A script that will determine if a number is even

number=20

if [ $((number % 2)) -eq 0 ];
then
Expand Down
4 changes: 2 additions & 2 deletions what-are-functions/add_numbers
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

check_even () {
local mod=2
echo "The value of mod is $mod"
echo "The value of mod is $mod inside of the function"
if [ $(("$1" % $mod)) -eq 0 ]
then
echo "The number $1 is even!";
Expand All @@ -15,4 +15,4 @@ check_even () {
number=2344

check_even $number
echo $mod
echo "The value of mod is $mod outside of the function"
Empty file modified what-are-loops/for_loop_new_c
100644 → 100755
Empty file.
Empty file modified what-are-loops/for_loop_traditional
100644 → 100755
Empty file.
Empty file modified what-are-loops/loop_and_break
100644 → 100755
Empty file.
Empty file modified what-are-loops/until_loop
100644 → 100755
Empty file.
Empty file modified what-are-loops/while_loop
100644 → 100755
Empty file.
5 changes: 5 additions & 0 deletions what-is-a-bash-script/.local/bin/hello_world
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

# Welcome to your first Bash Script

echo 'Hello World!'
Empty file modified what-is-a-bash-script/hello_world
100644 → 100755
Empty file.
8 changes: 6 additions & 2 deletions what-is-a-variable/hello_variable
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

# Welcome to your first Bash Script
# A script that will print out a message from a variable

echo 'Hello World!'
hello_message='Hello World!'
current_dir=$(pwd)
readonly variable_wont_change="green"
variable_wont_change="red"
echo "$hello_message from $current_dir your favorite color is $variable_wont_change"