Skip to content

I added the greater sign symbol to separate each task and for aesthe… #49

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 2 commits into
base: main
Choose a base branch
from
Open
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
18 changes: 12 additions & 6 deletions Challenges/Day_1/solution_day1_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@
# First line of the script is the shebang which tells the system how to execute

# Task 2: Echo
echo "Scripting is fun with @TWS"
echo "Learning scripting with @TWS"
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>"

# Task 3: Variables
variable1="Hello"
variable2="Bash"
var1="Hi"
var2="Tolu"
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>"

# Task 4: Using Variables
greeting="$variable1, $variable2!"
greeting="$var1, $var2!"
echo "$greeting Welcome to the world of Bash scripting!"
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>"

# Task 5: Using Built-in Variables
echo "My current bash path - $BASH"
Expand All @@ -20,10 +23,13 @@ echo "PID of bash I am running - $$"
echo "My home directory - $HOME"
echo "Where am I currently? - $PWD"
echo "My hostname - $HOSTNAME"
echo "List of files in my current directory, $PWD is:"
ls
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>"

# Task 6: Wildcards
echo "Files with .txt extension in the current directory:"
ls *.txt
echo "Files with .md extension in the current directory:"
ls *.md



Expand Down
1 change: 1 addition & 0 deletions Challenges/Day_2/explorer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ while true; do
ls -lh

# Part 2: Character Counting
# I will add no text at first, then 4 characters which is my name Tolu to see
read -p "Enter a line of text (Press Enter without text to exit): " input

# Exit if the user enters an empty string
Expand Down