shell get user input code example
Example 1: shell promt user input
#!/bin/bash
read -p "Enter Your Name: " username
echo "Welcome $username!"
Example 2: Select the command to read the input from the User in shell scripting?
read <variable>
#!/bin/bash
read -p "Enter Your Name: " username
echo "Welcome $username!"
read <variable>