Computer Services & Repairs
Chicago and Suburbs
 

Table of Contents


 

7.03 Special Modifiers #(especially used in scripts, look for more examples in section 8.00)

Symbol

Description

${variable:-word}

If the variable is set and is not empty, substitute its value. Otherwise substitute the value of word.

${variable:=word}

If the variable is set and is not empty, substitute its value. Otherwise set it to value of word. This is a permanent setting

${variable:+word}

If the variable is set and is not empty, substitute the value of word. Otherwise substitute nothing.

${variable:?word}

If the variable is set and is not empty, substitute the value of word. Otherwise print the value of word and exit the

 
 
   

Copyright 2006 © Burnnet Computers LLC.