man page offers no examples.
Here I'm going to showhow to use some of these features to do the sorts of ... rguments like:
cp-pattern '*.txt' .bak
... note how the second pattern has no wild cards and how the first is quoted to prevent any shell globbing... n the other examples.
My point here has been to showhow we can do quite a bit of string parsing and manip... g to lower case
Now I've done it. Because I have shown you the str_to_upper, I'd better show you its sister function str_to_lower. No guesses
n test brackets (see Example 7-6) normally works, however, this is an unsafe practice. Always quote a t... ts of all-integer characters.
# Caution advised, however.
echo
if [ "$a" -ne "$b" ]
then
echo "$a ... s null."
fi # Wrong result.
# Shows $string1 as not null, although it was not initia... rator alone detects whether the string is null.
# However it is good practice to quote it (if [ "$strin