.
The vanishing of a program is a rare event: if it's there when we look for it, probably it will be there also a few moments later when we in... Y.
A test on the variable is then carried out. If it holds any value then it's an error, but if it holds no value then it's OK. A return code is then executed based on thi... be in upper case.
Here is a function that will do it for you. No points for guessing it's tr.
str_to_upper ()
# str_to_upper
# to call:... i
}
To call the function is_upper simply send it a string argument. Here's how it could be called.
echo -n "Enter the filename
one detects whether the string is null.
# However it is good practice to quote it (if [ "$string1" ]).
#
# As Stephane Chazelas poi... # Again, gives correct result.
# Still, it is better to quote it ("$string1"), because . . .
string1="a = b"
if... e' filter.
# May substitute 'less' if desired.
exit $? # Script returns exit status of pipe.
# Actually "exit $?" is unnecessary, as the script will, in any case,
#+ return the