h returns the length of the value of the variable as a character string. For example, if filename has the value fred.c, then ${#filename} would have th... er-field separator in the Bourne, and Korn shells as well as bash) to parse each line of /etc/passwd and extra... t to yes: lines are read using the null character as terminator, else they are read using the standard newline as terminator.
This function may block waiting for ... in the standard input. Returns true if the user has typed yes, false if the user has typed no.
The optional parameter progname is use
kings . . .
# Using if [ ... ]
# If a string has not been initialized, it has no defined value.
# This state is called "null" (... # Wrong result.
# Shows $string1 as not null, although it was not initialized.
echo
# Let's try it again.
if... ood practice to quote it (if [ "$string1" ]).
#
# As Stephane Chazelas points out,
# if [ $string1 ] has one argument, "]"
# if [ "$string1" ] has two arguments,