# Day 8 - Task: Shell Scripting Challenge

# Task 1: Comments

In bash scripts, comments are used to add explanatory notes or disable certain lines of code. Your task is to create a bash script with comments explaining what the script does.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1748966856608/4d710106-8cb1-4282-b1fc-978557deaebc.png align="center")

# Task 2: Echo

The echo command is used to display messages on the terminal. Your task is to create a bash script that uses echo to print a message of your choice.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1748966918290/6bf3d76c-7fa2-498c-ab2a-3d1156c03d52.png align="center")

# Task 3: Variables

Variables in bash are used to store data and can be referenced by their name. Your task is to create a bash script that declares variables and assigns values to them.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1748966945001/26ee80eb-fb05-4c5f-9d15-3c260cb5ba46.png align="center")

# Task 4: Using Variables

Now that you have declared variables, let's use them to perform a simple task. Create a bash script that takes two variables (numbers) as input and prints their sum using those variables.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1748968814763/685f2ba3-e9c2-4643-b424-eeed65ce117b.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1748968952952/16ccb6bf-c5f9-4e68-97fd-317fc7d4a82e.png align="center")

# Task 5: Using Built-in Variables

Bash provides several built-in variables that hold useful information. Your task is to create a bash script that utilizes at least three different built-in variables to display relevant information.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1748968883580/857f1db5-f25e-43a7-88ff-c3af9df6084d.png align="center")

# Task 6: Wildcards

Wildcards are special characters used to perform pattern matching when working with files. Your task is to create a bash script that utilizes wildcards to list all the files with a specific extension in a directory.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1748968978407/7f69fa29-6515-4f6a-8cfe-1611eb0b5dac.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1748968999002/1bec631a-6f66-466d-82c9-5a5875beda77.png align="center")

📚 Happy Learning :)😊
