- 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...
Germany
Slovakia
Canada
Brazil
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
United States
Great Britain
India
Spain
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
France
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Australia
Japan
Russia