Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Mar 2008 19:32:21 +0100
From:      Mel <fbsd.questions@rachie.is-a-geek.net>
To:        freebsd-questions@freebsd.org
Cc:        Victor Subervi <victorsubervi@gmail.com>
Subject:   Re: Variable Substitution
Message-ID:  <200803081932.21751.fbsd.questions@rachie.is-a-geek.net>
In-Reply-To: <4dc0cfea0803080548q6f5bb4e0rd229f4fb0f29149b@mail.gmail.com>
References:  <4dc0cfea0803030652n2f048784qcfc46ad561d9fbf9@mail.gmail.com> <200803040022.34594.fbsd.questions@rachie.is-a-geek.net> <4dc0cfea0803080548q6f5bb4e0rd229f4fb0f29149b@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 08 March 2008 14:48:52 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. 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?

Ah you can't. %x substitution only works on primitives and char arrays, 
meaning, numbers of various sizes, letters and strings of letters.
There's also date formatting (strftime), but that's about as far as it goes.

A file is not a 'thing', it's a container of things, so it's very 
hard 'format'.

But like Eric said, it helps to know what language you're using and what you 
got so far and what you want to do.
-- 
Mel

Problem with today's modular software: they start with the modules
    and never get to the software part.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803081932.21751.fbsd.questions>