Bash Scripting - Basics
How can you modify this script to accept a user's name as input and greet them?
#!/bin/bash echo "Enter your name:" echo "Hello, $name!"
#!/bin/bash echo "Enter your name:" echo "Hello, $name!"
read command waits for user input and stores it in a variable.read name after prompt captures input; echo then greets user.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions