Answers for "how to take input in bash script"

8

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

read value in script

read -p "Enter your name : " name
echo $name
Posted by: Guest on November-25-2020
1

bash input

#!/bin/bash
# Ask the user for their name
echo Hello, who am I talking to?
read varname
echo It's nice to meet you $varname
Posted by: Guest on August-19-2021

Code answers related to "how to take input in bash script"

Browse Popular Code Answers by Language