Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
df1d67e
Create 12-monkeys.sh
adolocm Sep 4, 2020
856680f
Create 13-RNG.sh
adolocm Sep 4, 2020
4440126
Assignment 4a Git & Bash
jshan98 Aug 23, 2021
9c86881
Assn 4a - Introductory Bash Script
drinferno2001 Aug 25, 2021
5d060f9
Assn 4a - Updated Script Shebang for bash execution
drinferno2001 Aug 25, 2021
e875921
add folder with name and script
MrMustard-79 Aug 25, 2021
b4cc64c
Added a script that returns the total number of pixels
jshan98 Aug 27, 2021
a826a2e
parallel universe made
jshan98 Aug 27, 2021
714f25d
Branch graph added to repo
jshan98 Aug 27, 2021
2dd87ff
try again
jshan98 Aug 27, 2021
e45450d
fixed add_nums
jshan98 Aug 27, 2021
a89891a
merge screenshot taken
jshan98 Aug 27, 2021
42c5f29
Add monkey counting song
MrMustard-79 Aug 28, 2021
36b1817
add monkey counting song to beer song
MrMustard-79 Aug 29, 2021
feebbb9
Add files via upload
MrMustard-79 Aug 29, 2021
97e80c7
resolve merge conflict
MrMustard-79 Aug 29, 2021
7ac3b7c
Merge branch 'master' of github.com:MrMustard-79/bash_basics into master
MrMustard-79 Aug 29, 2021
160bbf4
Add files via upload
MrMustard-79 Aug 29, 2021
6078587
02-add_nums Exercise Completed - Appended to end of file
drinferno2001 Aug 29, 2021
01afb4a
02-add_nums Parallel Exercise Completed - Prompts for Height first
drinferno2001 Aug 29, 2021
6066bea
GitHub Checkout and Branch Network Picture for Part I
drinferno2001 Aug 29, 2021
cdb7ca9
Merge branch 'name'
drinferno2001 Aug 29, 2021
3dd81a2
GitHub Checkout and Branch Network Picture for Part II
drinferno2001 Aug 29, 2021
d16c622
Merge pull request #95 from MrMustard-79/master
adolocm Sep 12, 2021
0c360ae
Merge pull request #93 from DrJava1000/master
adolocm Sep 12, 2021
b746bf6
Merge pull request #92 from jshan98/master
adolocm Sep 12, 2021
f1e6a9f
add Thanh Tran folder and bash file for exer 4a
nhuthanhtran Aug 31, 2024
f662e9c
modify the 03-happy.sh file
nhuthanhtran Aug 31, 2024
ad87ccf
step 7 redo 2 and 3
nhuthanhtran Aug 31, 2024
5a8aaa4
step 7 redo 2 and 3
nhuthanhtran Aug 31, 2024
5eed5ca
add git branch image. Finish part I 4b
nhuthanhtran Aug 31, 2024
155bff6
resolved git conflicts
nhuthanhtran Aug 31, 2024
a80e338
add git branch graph after merging
nhuthanhtran Aug 31, 2024
3687914
Merge pull request #157 from nhuthanhtran/master
adolocm Sep 15, 2024
b33e479
Created copy of a bash script and updated to reflect assn requirements.
steven43533 Jan 24, 2025
4a6d767
Performed exercise requirements for 09-name
steven43533 Jan 27, 2025
1e333ef
Created parallel branch and updated 09 file
steven43533 Jan 27, 2025
e777cba
Added screenshot of network graph to repo.
steven43533 Jan 27, 2025
8f45887
Merge branch 'parallel-uni-5b'
steven43533 Jan 27, 2025
8a90a4e
Added screenshot confirming merged branches
steven43533 Jan 27, 2025
d19cc7b
Merge pull request #177 from steven43533/master
adolocm Apr 9, 2025
8e06faa
Added new file to bash_basics titled (read_input.sh)
jsenghore Aug 28, 2025
c120180
addition for piazza assignment
jsenghore Sep 8, 2025
9210ef3
addition for piazza assignment (parallel)
jsenghore Sep 8, 2025
f2e8c97
Merge branch 'name'
jsenghore Sep 8, 2025
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
10 changes: 10 additions & 0 deletions 01-read-input_copy_cli.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

echo "Hello Steven Lopez!"
echo "How old are you?"
read age
echo 'Thanks Steven! I see you are ' $age ' years old'

echo "What school do you currently attend?"
read school
echo 'Nice! ' $school ' sounds like a great place to learn.'
20 changes: 20 additions & 0 deletions 02-add_nums.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,25 @@ sum=$(( first+second+third ))

echo "The sum is $sum"

echo "Please enter the height"
read height
echo "Please enter the width"
read width

totalPixels=$(( height*width ))

echo "The total number of pixels is $totalPixels"

# exercise: ask the user for the width and height and present total
# number of pixels

echo ""
echo "What is the width of your display?"
read width
echo ""
echo "What is the height of your display?"
read height

echo ""
pixelTotal=$(( $width * $height ))
echo "Your display has ${pixelTotal} pixels."
8 changes: 8 additions & 0 deletions 03-happy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ fi

# exercise: write a script that prints whether today is
# the weekend or not
echo "Which day of a week is today?"
read day
if [[ ${day,,} == "saturday" ]] | [[ ${day,,} == "sunday" ]]
then
echo "Horayyyy!! Today is the weekend. Enjoy yourself! Be ready for the next week."
else
echo "Today is a weekday. Keep focus on your work."
fi
15 changes: 15 additions & 0 deletions 04-life_assignment.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
echo "What hour of the day is it (24 hour)?"
read it
echo "it is $it"
if [ $it -lt 13 ]
then
echo "It is morning!"
else
echo "It is not the morning."
fi

# here are some other arithemetic comparison operators
# -eq -ne -gt -ge -lt -le

# exercise: write a script that prints whether it is
# morning or not
21 changes: 21 additions & 0 deletions 07-beer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,24 @@ done

# exercise: implement another counting song (such as 12 days of Christmas)
# using loops and if statements.

echo "Now we sing about monkeys jumping on the bed"
echo "How many monkeys?"
read count

while [ $count -ge 0 ]; do
if [ $count -ge 2 ]; then
echo "$count little monkeys jumping on the bed"
echo "one fell off and bumped his head"
echo "Moma called the doctor and the doctor said"
echo "No more monkeys jumping on the bed!"
else
echo "$count little monkey jumping on the bed"
echo "He fell off and bumped his head"
echo "Moma called the doctor and the doctor said"
echo "No more monkeys jumping on the bed!"
fi

((count = count - 1))

done
8 changes: 7 additions & 1 deletion 09-name.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# look up ip addresses of various search engines

servers="yahoo.com google.com dogpile.com wolframalpha.com"
servers="github.com youtube.com twitter.com reddit.com"

for server in $servers; do
nslookup $server
Expand All @@ -12,3 +12,9 @@ done
# exercise: Change the list of servers and also the
# operation applied to them. For instance, use ping,
# traceroute, or nslookup with other options.

for server in $servers; do
ping $server
echo "----------------------------"
done

20 changes: 20 additions & 0 deletions 12-monkeys.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# exercise: implement another counting song (such as 12 days of Christmas)
# using loops and if statements.

echo "Now, let's sing monkey jumping on the bed."
echo "How many monkeys are jumping on the bed?"
read number
while [ $number -ge 0 ]; do
if [ $number -ge 2 ]; then
echo "$number little monkeys jumping on the bed. One fell off and bumped its head."
echo "Momma called the doctor and the doctor said, 'No more Monkeys jumping on the bed!'"
elif [ $number -ge 1 ]; then
echo "$number little monkeys jumping on the bed. One fell off and bumped its head."
echo "Momma called the doctor and the doctor said, 'No more Monkeys jumping on the bed!'"
else
echo "No more monkeys jumping on the bed."
fi

((number = number - 1))
done
#statements
26 changes: 26 additions & 0 deletions 13-RNG.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash
echo "Taisann Kham"
echo "Hello, welcome to Taisann's RNG guessing game"
echo "Please choose a number between 0 - 9"
RANGE=10
rand=0
rand=$RANDOM
let "rand %= $RANGE"
read input
loop=false
while [[ $loop != q ]]; do
if [[ $input -lt $rand ]]; then
echo "Your number is smaller than the correct number"
fi
if [[ $input -gt $rand ]]; then
echo "Your number is bigger than the correct number"
fi
if [[ $input -eq $rand ]]; then
loop=q
echo "Congratulations! You guessed the correct number, $rand!"
fi
if [[ $loop != q ]]; then
echo "Please choose a new number"
read input
fi
done
Binary file added GH-Network-Parallels.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GitBranchGraph-AfterMerging.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GitBranchGraph.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GitBranchGraphTwo.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GitHub_Network_Pic_1.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GitHub_Network_Pic_2.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Github-p2-conflict-resolution.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions Ryan_Gambrell/ryans_bash_script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#/bin/bash
echo "My name is Ryan Peyton Gambrell"
echo "Welcome to Dr. Anca Doloc-Mihu's Software Development II class."
echo ""
echo "Here is my half pyramid."
echo ""
for outerStar in {1..6}
do
while [ $outerStar -gt 0 ]
do
echo -n "*"
((outerStar--))
done
echo ""
done
17 changes: 17 additions & 0 deletions Thanh_Tran/Thanh_Tran_script_bash.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

echo "Hello! My name is Thanh Tran."
echo "Welcome to my first bash program! What is your name?"
read name
echo "Hi, $name . Nice to see you. Let play a game"

echo "What is the closest planet to the Sun?"
read planet

while [[ "${planet,,}" != "mercury" ]]
do
echo "Incorrect. Please guess again."
read planet
done

echo "You got the right answer! Bye bye. See you again."
Binary file added github_netowork_graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added github_netowork_graph_conflict_merged.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions josephShanahan.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
# read the name of the user and print hello

echo "Hello! My name is Joseph Shanahan."
echo "I hope you are having a great day!!!"
msg="Would you like to see the hidden message? Please enter '1' for YES or '0' for NO."
echo $msg
read input
loop=false
while [[ $loop == false ]]; do
if [[ $input == 1 ]]; then
echo "Hello there!"
sleep 5s
loop=true
elif [[ $input == 0 ]]; then
echo $msg
read input
fi
done
10 changes: 10 additions & 0 deletions khendricks/nameAndCountdown.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
name=Kris
echo "Hello $name, isn't it a beautiful day to git?"
echo "Exiting in..."
for (( counter=10; counter>0; counter--))
do
sleep 1s
echo -n "$counter "
done
printf "\n"
21 changes: 21 additions & 0 deletions read_input.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
# read the name of the user and print hello

echo "Hello! What is your name"
read name
echo "Welcome, $name"

# single quotes prevent the expansion of the variable
echo 'Your name was stored in $name'

# exercise: write a script that asks the user for a
# filename and create an empty file named after it

echo "Hey $name, What is your filename?"
read filename
echo "You want $filename"
echo "Creating $filename ..."
touch $filename
echo "$filename creted"
ls
echo "Bye,bye"