Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
how to read from keyboard in bash and store in a variable
Appolinaria
Programming language:
Whatever
2021-07-19 23:17:53
0
Q:
how to read from keyboard in bash and store in a variable
jaxter
Code:
Whatever
2021-09-19 08:06:03
#!/bin/bash read -p "Enter your name : " name echo "Hi, $name. Let us be friends!"
0
Tags
key
variable
how
var
read
Related
read password bash
bash count character in variable
save output of command to variable bash
bash create jks from cert and key
how to put value of one variable into another in bash
bash get environment variable
New to Communities?
Join the community