Skip to content
Open
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
33 changes: 33 additions & 0 deletions Challenges/Day_1/day1-solution.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash

# Task 1 ( completed task 1 comments )

#Task 2

echo "DevOps Zero to Hero" # completed task 2 echo

#Task 3

variables1="Hello"
variables2="Dosto" # completed task 3 Variabeles

#Task 4

variables="$variables1,$variables2"
echo "$variables welcome to BashBlaze-7-Days-of-Bash-Scripting-Challenge" # completed task 4 Using variables

#Task 5

echo "1. My current bash path - $BASH"
echo "2. Bash version I am using - $BASH_VERSION"
echo "3. PID of bash I am running - $$"
echo "4. My home directory - $HOME"
echo "5. Where am I currently? - $PWD"
echo "6. My hostname - $HOSTNAME" # Completed task 5 Using Built-in Variables

#Task 6

echo "Files with .txt to list all the files with a specific extension in a directory"
ls *.txt
ls *.sh # completed task 6 Wildcardss