|
From: | Matthew Woehlke |
Subject: | Re: Please advise on programming tactics/strategy |
Date: | Wed, 26 Dec 2007 19:34:01 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.0 |
cga2000 wrote:
On Tue, Dec 18, 2007 at 09:57:44PM EST, Matthew Woehlke wrote:You might want to look at bash's command redirection instead.?
Sorry, the "correct" term (at least, what the manpage uses :-) ) is "process substitution". Conceptually, it's a bit like writing pipes backwards. For example, 'read l < <(netstat | sed -n 5p)' stores the fifth line of the output from 'netstat' in the variable 'l'.
-- Matthew"It's ok, I forgive you. I often confuse cream cheese with happiness myself ;-)" -- Jeremy Whiting (responding to a rather strange yet amusing conversation I'd started; also, I agree with the sentiment)
[Prev in Thread] | Current Thread | [Next in Thread] |