Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash set var if not set

${parameter:-word}
    # If parameter is unset or null, the expansion of word is substituted. 
    # Otherwise, the value of parameter is substituted.
Comment

PREVIOUS NEXT
Code Example
Shell :: what is my ip 
Shell :: get public ip linux 
Shell :: how to find ssh config file mac 
Shell :: How to update newer git version on ubuntu 18.04 by using command line terminal. 
Shell :: git fetch upstream 
Shell :: command line windows find file 
Shell :: how to install swift on ubuntu 
Shell :: bash echo in variable 
Shell :: django start project in existing directory 
Shell :: how to open file in linux 
Shell :: remove file from commit 
Shell :: how to run a command async in ubuntu 
Shell :: wc bash 
Shell :: Push an existing repository to an empty github repository 
Shell :: linus display ORACLE_HOME 
Shell :: bash create symlink to symlinks 
Shell :: stop linux service 
Shell :: how to compare percentage value in shell script 
Shell :: arch linux sort packages by size 
Shell :: how to check process id in linux 
Shell :: curl get url https 
Shell :: how to instal git on mac 
Shell :: install scrapy 
Shell :: removing portion of history from terminal mac 
Shell :: how to connect to a git repo in cmd 
Shell :: rename multiple files in terminal 
Shell :: how to exit root user in linux 
Shell :: strip first character form output linux 
Shell :: install node in nvm 
Shell :: apply stash git 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =