prompt user input bash code example
Example 1: shell promt user input
#!/bin/bash
read -p "Enter Your Name: " username
echo "Welcome $username!"
Example 2: how to take input in bash
#!/bin/bash
read -p "give input! " STOREDVAR
echo $STOREDVAR
#!/bin/bash
read -p "Enter Your Name: " username
echo "Welcome $username!"
#!/bin/bash
read -p "give input! " STOREDVAR
echo $STOREDVAR