?? Day 8 of #90DaysOfDevOps Challenge: Bash Scripting Basics ???

?? Day 8 of #90DaysOfDevOps Challenge: Bash Scripting Basics ???

Today, I explored the essentials of bash scripting, covering key concepts step by step. Here's how I tackled each task, along with command-line examples:

?? Task 1: Comments

  • What I Learned: Comments in bash scripts start with # and are used to explain what different parts of the script do.
  • Example:


?? Task 2: Echo

  • What I Learned: The echo command displays messages in the terminal. It’s a simple way to print text or variable values.
  • Example:



?? Task 3: Variables

  • What I Learned: Variables in bash can store data that can be referenced by their name.
  • Example:



? Task 4: Using Variables

  • What I Learned: Variables can be used to perform operations like arithmetic.
  • ?Example:


?? Task 5: Built-in Variables

  • What I Learned: Bash has built-in variables that hold useful information, such as the script name ($0), the number of arguments ($#), and more.
  • Example:

?


? Task 6: Wildcards

  • What I Learned: Wildcards (*, ?, [ ]) are used to perform pattern matching for file operations.
  • Example:

# List all files with a .txt extension in the current directory


# List all files starting with 'file' and ending in '.sh'



?? Submission Instructions

  • Steps Taken: Combined all the tasks above into a single bash script. Added comments to explain each part of the script. Uploaded the script to a GitHub repository for review.


Day 8 was an exciting introduction to bash scripting, building a solid foundation for more complex tasks ahead. Can’t wait to dive into advanced concepts in the coming days! ??

#Day8 #BashScripting #DevOpsLife #LinuxLearning #Automation #ShellScripting #90DaysOfDevOps #TechGrowth #CommandLine

要查看或添加评论,请登录

Naushad khan的更多文章

  • Day 9 : Directory Backup with Rotation Using Bash ???

    Day 9 : Directory Backup with Rotation Using Bash ???

    ?? Day 9 of #90DaysOfDevOps: Directory Backup with Rotation Using Bash ??? #Day8 #BashScripting #DevOpsJourney…

  • Day 6: File Permissions and Access Control

    Day 6: File Permissions and Access Control

    Day 6 of #90DaysOfDevOps Challenge: File Permissions and Access Control Hello everyone! On Day 6 of my #90DaysOfDevOps…

  • Day 4 Task: Basic Linux Shell Scripting for DevOps Engineers

    Day 4 Task: Basic Linux Shell Scripting for DevOps Engineers

    Hello, everyone! On Day 4 of my #90DaysOfDevOps challenge, I explored Linux shell scripting and learned some key…

    1 条评论
  • Basic Linux Commands with a Twist

    Basic Linux Commands with a Twist

    #90DaysOfDevOps Challenge: Basic Linux Commands with a Twist Day 3 of #90DaysOfDevOps Challenge: Basic Linux Commands…

    1 条评论
  • Basic Linux Commands Day2

    Basic Linux Commands Day2

    Welcome to Day 2 of my #90DaysOfDevOps challenge! Today, I explored some fundamental Linux commands that are super…

    1 条评论
  • Introduction to DevOps

    Introduction to DevOps

    Day 1 of #90DaysOfDevOps Challenge: Introduction to DevOps Hey everyone! I’ve officially started my #90DaysOfDevOps…

    1 条评论

社区洞察

其他会员也浏览了