Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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
Comment

PREVIOUS NEXT
Code Example
Shell :: how to install fairseq 
Shell :: git diff with remote branch 
Shell :: ubuntu icons missing on taskbar 
Shell :: git fetch and checkout branch 
Shell :: linux install sass 
Shell :: how to check installed apps in ubuntu 
Shell :: Terminal commands to push a file to Github 
Shell :: install ssl ubuntu 
Shell :: GREPCC token 
Shell :: hwo to add custom commands in bash 
Shell :: poython opencv pip 
Shell :: how to change permissions on a file in linux 
Shell :: flutter web setup 
Shell :: copy ssh remote server 
Shell :: windows laravel installer 
Shell :: install vscode linux 
Shell :: diff from last commit 
Shell :: install magento 2 command line composer 
Shell :: git push to branch 
Shell :: ubuntu docker-compose cannot exit 
Shell :: how to update discord on ubuntu 
Shell :: sort numerically in linux ls 
Shell :: export requirements from python venv 
Shell :: bash adb command not found... on linux 
Shell :: Install libqt4 ib ubuntu 
Shell :: linux bash clear log file space 
Shell :: how to create a new file in kali linux 
Shell :: install csv 
Shell :: install python math library 
Shell :: zsh: command not found: npm 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =