Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to read from keyboard in bash and store in a variable

#!/bin/bash
read -p "Enter your name : " name
echo "Hi, $name. Let us be friends!"
Comment

PREVIOUS NEXT
Code Example
Shell :: cmd substring replace 
Shell :: commitlint, husky, commitzen 
Shell :: npm dotenv 
Shell :: remove docker machine 
Shell :: git push template 
Shell :: codeigniter 4 migrate 
Shell :: install react dependencies 
Shell :: install python mysqlclient on mac 
Shell :: how to create a shortcut to a folder on linux 
Shell :: check linux file size 
Shell :: how to run shell script 
Shell :: install aws cli v2 mac 
Shell :: ERR_NO_CERTIFICATES: Encountered adb error: NoCertificates. ionic 
Shell :: cmd copy all files to another folder 
Shell :: bash compare two files 
Shell :: install elasticsearch on ubuntu 
Shell :: reload .bashrc 
Shell :: Flutter doctor error - Android sdkmanager tool not found. Windows 
Shell :: mysql_upgrade xampp 
Shell :: minikube memory size 
Shell :: git log with simple graph 
Shell :: git track remote branch 
Shell :: update composer mac 
Shell :: bash if larger than 
Shell :: The terminal process failed to launch: Path to shell executable "cmd.exe" does not exist. vscode 
Shell :: octoprint log location 
Shell :: Curl default connect-timeout 
Shell :: command to list system services 
Shell :: Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager. 
Shell :: linux ping a port 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =