Generalize the script written in exercise 13 so the character separating the list items is given as an argument to the function. If this argument is absent, the separator should default to a colon.
What will be an ideal response?
This script segment takes an option in the form –dx to specify the
delimiter x:
$ cat nodel
if [[ $1 == -d? ]]
then
del=$(echo $1 | cut -b3)
shift
else
del=:
fi
IFS=$del
set $* for i
do
echo $i
done
You might also like to view...
The first part of an email address contains a(n) ____________________.
Fill in the blank(s) with the appropriate word(s).
Using the IP address as a reference, you will be able to return to the original site whenever you need additional data to complete a citation.
Answer the following statement true (T) or false (F)
Starting with the 2-3 tree from question 4), insert the elements 19 and 29. Sketch the tree after each insertion.
What will be an ideal response?
Pointers, both as variables and function parameters, are used to store addresses.
Answer the following statement true (T) or false (F)