write a shell script that takes your name as input and display

Let's write a shell script which takes our name as input and display it.





Shell Script

name.sh

Example

#Name input and display

read name

echo "Your Name = $name"


Output

sh name.sh

Bash

Your Name = Bash


Useful Resources

To learn more shell script examples, you can visit the link