Variable Substitution

Erik Trulsson ertr1013 at
Sat Mar 8 13:57:29 UTC 2008

On Sat, Mar 08, 2008 at 02:48:52PM +0100, Victor Subervi wrote:
> No, no, I have made myself misunderstood. I am looking for a %x where x is
> some letter that will enable me to substitute a file.

What do you mean by "substitute a file". Do you mean the name of a file?
Or the contents of a file? Or a file handle? Or something else?

Also: what language/tool are you using?  '%x' (for various values of x) is
primarily used by printf() and scanf().  They do not have any special formats
for files of any kind.

You will have to explain in more detail what it is you are actually trying
to do, because that is not clear at all.

> Also, I am looking for
> a howto to brush up on that. What is this called if not variable
> substitution, which is not google-friendly?
> TIA,
> Victor
> On 3/4/08, Mel <fbsd.questions at> wrote:
> >
> > On Monday 03 March 2008 15:52:51 Victor Subervi wrote:
> >
> > > Forgive this basic question, but can´t figure out how to google it. If I
> > > want to substitute strings in an expression, I can use %s for string, or
> > %d
> > > for digit. What about file? What is this process called, so I can find a
> > > howto?
> >
> > printf(1) or printf(3), pending what language you want.
> > --
> > Mel
> >

<Insert your favourite quote here.>
Erik Trulsson
ertr1013 at

More information about the freebsd-questions mailing list