e. This allows us to use any of these fields that we need from within the loop. Here we are just using the echo command -- as we have in the other examples.
My point here has be... is duplication down. To test for characters only, we can use awk. Here's the function to test if we only get upper or lower case characters.
char_name()
{
# char_nam... a directory
echo "extracting files..."
When we run the above script we get the same output as if we had the function inside our script:
$ direc... a functions file, then other scripts can use the functions as well.
Last modified: August 15, 2009
test brackets (see Example 7-6) normally works, however, this is an unsafe practice. Always quote a te... integers or strings.
# There is some blurring between the arithmetic and string comparisons,
#+ since... of all-integer characters.
# Caution advised, however.
echo
if [ "$a" -ne "$b" ]
then
echo "$a i... tor alone detects whether the string is null.
# However it is good practice to quote it (if [ "$string