Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

check exit code of a command bash

if [ $? -eq 1 ] 
then
    echo "blah blah blah"
fi
Comment

bash exit code

exit 1;
Comment

PREVIOUS NEXT
Code Example
Shell :: vim quit 
Shell :: powershell filter 
Shell :: teams ubuntu 
Shell :: How can I check if a directory exists in a Bash shell script? 
Shell :: sonarqube linux installation 
Shell :: android/gradlew EACCES error 
Shell :: ngrok sing up 
Shell :: how to make ubuntu use all available disk 
Shell :: cut first 10 characters linux 
Shell :: install crontab in linux 
Shell :: github.com api 
Shell :: what is uname -r linux 
Shell :: remove a git remote origin 
Shell :: get linux directory size 
Shell :: wsl export 
Shell :: show hidden files mac 
Shell :: sublime text linux 
Shell :: docker build and run one command 
Shell :: pyinstaller dmg on mac 
Shell :: how to remove a vm in proxmox from terminal 
Shell :: wps office has not found any installed printers 
Shell :: git checkout filename 
Shell :: installing ruby on rails ubuntu 20.04 
Shell :: Test validator does not look started. 
Shell :: git fatal "is in submodule" 
Shell :: pipeline command in linux 
Shell :: noetic catkin tools install 
Shell :: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package nano 
Shell :: how to compare differences between two files in linux 
Shell :: get number input batch 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =