- What is parameter substitution?
Nothing more than the run-time substitution of the variable name with its value at that moment. - How can we include default values for our defined variables?
With the ${variable:-value} syntax, where variable is the name and value the default value. This will only be used if the value is null or empty (''). - How can we use parameter expansion to handle missing parameter values?
While you would normally use an if [[ -z ${variable} ]]; then, parameter expansion allows you to use the following syntax to generate an error message and exit 1: ${1:?Name not supplied!} - What does ${#*} do?
It is the same as $#, which we use to determine the number of arguments passed to our shell script. The general ${#name} syntax allows us to get the length of the value of the name variable. - How does pattern substitution work when talking about parameter...
United States
United Kingdom
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Argentina
Austria
Belgium
Bulgaria
Chile
Colombia
Cyprus
Czechia
Denmark
Ecuador
Egypt
Estonia
Finland
Greece
Hungary
Indonesia
Ireland
Italy
Japan
Latvia
Lithuania
Luxembourg
Malaysia
Malta
Mexico
Netherlands
New Zealand
Norway
Philippines
Poland
Portugal
Romania
Singapore
Slovakia
Slovenia
South Africa
South Korea
Sweden
Switzerland
Taiwan
Thailand
Turkey
Ukraine