Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

assign default value in shell script

FOO=${VARIABLE:-default}  # If variable not set or null, use default.
Comment

Setting default variable value in bash

FOO="${VARIABLE:=default}"  # If variable not set or null, set it to default.
Comment

PREVIOUS NEXT
Code Example
Shell :: ubuntu 20.04 uninstall imagemagick 
Shell :: remove submodule git 
Shell :: npm cache clean vs clear 
Shell :: uninstall vmware workstation 
Shell :: cv2 has no attribute videocapture 
Shell :: find text in any file linux 
Shell :: shebang unix 
Shell :: shell for file in directory 
Shell :: Your browser or operating system is no longer supported. You may need to install the latest updates to your operating system. 
Shell :: formik npm 
Shell :: how to install mysql python 
Shell :: cmake openssl linux 
Shell :: remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com. 
Shell :: how to uninstall chromium through terminal 
Shell :: nginx install in fedora 34 
Shell :: install vinagre ubuntu 
Shell :: mysql port check ubuntu 
Shell :: macos start avd cmd 
Shell :: headphone jack not working in macbook pro 
Shell :: command to find Server’s Public IP Address using curl 
Shell :: give full permission to folder in ubuntu 
Shell :: install babel command line 
Shell :: get database url heroku 
Shell :: git clean local remote branch 
Shell :: ssh tunel map background 
Shell :: how to activate utf16 in powershell 
Shell :: linux kill all python processes 
Shell :: yarn upgrade typescript 
Shell :: delete distro 
Shell :: autoclicker linux 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =