Re: Variable Substitution

2008-03-08 Thread Mel
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.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Variable Substitution

2008-03-08 Thread Erik Trulsson
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 <[EMAIL PROTECTED]> 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
> >


-- 

Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Variable Substitution

2008-03-08 Thread Victor Subervi
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?
TIA,
Victor


On 3/4/08, Mel <[EMAIL PROTECTED]> 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
>
> Problem with today's modular software: they start with the modules
>and never get to the software part.
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Variable Substitution

2008-03-03 Thread Mel
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

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Variable Substitution

2008-03-03 Thread Victor Subervi
Hi:
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?
TIA,
Victor
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"