Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash try catch

{
# Try
} || {
# Executed when above fails
}
{
# Do stuff
} && {
# Only executed when above worked
}
Comment

PREVIOUS NEXT
Code Example
Shell :: gitignore idea 
Shell :: how to install tensorflow on anaconda 
Shell :: zsh: command not found: n 
Shell :: rm recursive file pattern 
Shell :: mac os generate public key from private key 
Shell :: starting jenkins in ubuntu 
Shell :: ubuntu terminal find file recursive 
Shell :: git replace with origin branch 
Shell :: access docker ubuntu terminal 
Shell :: split big file into smaller parts 
Shell :: ssh pc without password ubuntu 
Shell :: install netbeans 8.2 ubuntu 20.04 
Shell :: linux execute as user 
Shell :: ! [rejected] main - main 
Shell :: docker.service: Unit entered failed state. 
Shell :: linux refresh .bashrc 
Shell :: see what user a process is running as 
Shell :: bash create folder with spaces 
Shell :: unmount nfs 
Shell :: remove from staging git 
Shell :: linux package path 
Shell :: start docker in fedora 
Shell :: Install docker with apt command 
Shell :: HOW TLONG FOR VS TO INSTALL?!?!? 
Shell :: stop tracking files git 
Shell :: increment variable bash 
Shell :: tar extract gz 
Shell :: rename a git repositor while cloning 
Shell :: command to undo in emacs 
Shell :: flutter doctor android studio not installed 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =