This question already has an answer here:
$ printf "%s" a b ab$ printf "%s%s" a b ab
I have some problem understand the format specifier for
printf. If I am correct it is mostly the same as those for strings in the C programming language.
Why does the format specifier
%s concatenate the two following strings together?
%s not mean that there is only one string to substitute it, and ignore the remaining string?
Why are the results for two strings under
%s and under
%s%s the same?