From owner-freebsd-questions@FreeBSD.ORG Sat Mar 8 18:32:24 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE593106566C for ; Sat, 8 Mar 2008 18:32:24 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 6FACC8FC14 for ; Sat, 8 Mar 2008 18:32:24 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id 412B71CD4A; Sat, 8 Mar 2008 09:32:23 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Sat, 8 Mar 2008 19:32:21 +0100 User-Agent: KMail/1.9.7 References: <4dc0cfea0803030652n2f048784qcfc46ad561d9fbf9@mail.gmail.com> <200803040022.34594.fbsd.questions@rachie.is-a-geek.net> <4dc0cfea0803080548q6f5bb4e0rd229f4fb0f29149b@mail.gmail.com> In-Reply-To: <4dc0cfea0803080548q6f5bb4e0rd229f4fb0f29149b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803081932.21751.fbsd.questions@rachie.is-a-geek.net> Cc: Victor Subervi Subject: Re: Variable Substitution X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Mar 2008 18:32:24 -0000 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.