Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

zsh wait for user input

# delete -q if its not (y/n [n])

read -q VARIN?"PROMPT_MSG"
read -q "VARIN?PROMPT_MSG"
#both style works, I prefer the first

echo $VARIN # for test
Comment

PREVIOUS NEXT
Code Example
Shell :: dig +noall +answer 
Shell :: how to push code into github reposityory 
Shell :: install docker compose on centos 
Shell :: is sequal ace in linux? 
Shell :: (linux/arm) does not match the detected host platform (linux/amd64) 
Shell :: dpkg: command not found 
Shell :: free space in ubuntu 
Shell :: `path` for shell provisioner does not exist on the host system: 
Shell :: bash remove directory recursively locally and git 
Shell :: move folder from one directory to another in linux 
Shell :: how to remove pkg from mac 
Shell :: how to exit vi in linux 
Shell :: cannot find lstdc++ ubuntu 
Shell :: bash array number range from var 
Shell :: github axios 
Shell :: install wine in ubuntu 20.04 
Shell :: start with git and github 
Shell :: difference between git remote and git clone 
Shell :: mv bash 
Shell :: git copy changes from one branch to another 
Shell :: add husky folder 
Shell :: i get your branch is ahead of master after I pulled from remote master 
Shell :: how to push in git 
Shell :: Install OSSEC in Linux 
Shell :: where is sudo in linux 
Shell :: linux zip file without parent directory 
Shell :: mac kill process 
Shell :: docker container logs host path 
Shell :: cert manager version 
Shell :: linux screenshot shortcut 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =