Answers for "bash get user input"

7

input bash

# fullname="USER INPUT"
read -p "Enter fullname: " fullname
# user="USER INPUT"
read -p "Enter user: " user
Posted by: Guest on December-01-2020
1

bash read input

echo "Synchronize repositories? Y/N"
read ANSWER
Posted by: Guest on July-25-2020
0

bash get user input

#!/bin/bash
### Simple bash script to ask a user for their name
# First, echo the question
echo Hello, what is your name?
# Next, get the user input
read varname
# Finally, echo the response using the users input that we got in the previous step
echo It\'s nice to meet you $varname
Posted by: Guest on September-30-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language