[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Using terminal output as input



Dotan Cohen wrote:
>> Not pretty but how about
>> `ekiga | head -2 | tail -1`
>>
>> (note use of backticks)
>>
>>     
>
> That's creative! It doesn't seem to work on this system, I will try on
> Real Debian (tm) when I get home. However, it does require
> foreknowledge of the output, which I suppose is all right if the user
> can run the same command again.
>
> I just thought that there would be a command made for this, as it
> seems to be a common situation. I did not think that it would have to
> resort to hacks.
>   

Like you said, it does require foreknowledge of the output. So there is
no way to make a one-size-fits-all solution, be it a command-line trick
or a program.

If you told us exactly what you want to achieve, we might be able to
help you better.


-- 
Every cloud engenders not a storm.
		-- William Shakespeare, "Henry VI"

Eduardo M KALINOWSKI
eduardo@kalinowski.com.br


Reply to: