String variables
📖 Scenario: You are writing a simple bash script to store and display a greeting message. This is like writing a note to yourself that you want to see later.
🎯 Goal: Create a string variable in bash, assign a greeting message to it, and then print it to the screen.
📋 What You'll Learn
Create a string variable named
greeting with the exact value Hello, welcome to bash scripting!Create a variable named
name with the exact value FriendUse string concatenation to create a new variable
personal_greeting that combines greeting and name with a space in betweenPrint the value of
personal_greeting to the screen💡 Why This Matters
🌍 Real World
Storing and manipulating text messages in scripts is common for creating user prompts, logs, and notifications.
💼 Career
Understanding string variables is a basic skill for writing shell scripts that automate tasks and communicate with users.
Progress0 / 4 steps