a handy mnemonic device: # matches the front because number signs precede numbers; % matches the rear because percent signs follow numbers.
The expression ${DI... n 0
}
Now let's create the script that will use functions in the file functions.sh. We can then use these functions. Notice the functions file is sou...
. /home/dave/bin/functions.sh
# now we can use the function(s)
echo -n "enter destination di... onments that are shared by a few backup scripts I use.
Here's the file.
$ pg backfunc
#!/bin/sh
Still, it is better to quote it ("$string1"), because . . .
string1="a = b"
if [ $string1 ] # ... se condition. So, why "true" output?
# Is it because both condition clauses within brackets evaluate?