Re: Bash question: get output as a variable?
On Fri, Feb 5, 2010 at 12:42 AM, Mart Frauenlob
<mart.frauenlob@chello.at> wrote:
> tar ... 2> "$filename"
> mapfile array1 < "$filename"
>
> (don't know actually why '-u 2' option for mapfile does not complete for
> me? would make it a 'one-liner'.)
>
> on bash4.0+
This is a great example as well. The only problem is bash4 isn't
readily available to people using lenny. Also, wouldn't he just want
to redirect sdtout and not stderr? I guess it all depends on what he
wants to do with the list.
Reply to: