info printf and
printf --help are all pretty useless to me; I want an explanation of the
FORMAT options. For example, I could use:
printf '%s\n' foo bar
and get output:
From general reading online I surmise that
%s means something like 'separator', so with it
printf prints every argument provided to it, separated by newlines.
I've also seen references here and there to
%d and a number of others (I think it's something to do with digits?). Could someone please provide an overview of these formatting options?