bug-bash
[Top][All Lists]
Advanced

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

Re: Passing the results of GREP into a Bash Variable


From: Robert A. Adkins II
Subject: Re: Passing the results of GREP into a Bash Variable
Date: Thu, 12 Jul 2001 11:02:51 GMT

Thanks,

    That actually looks a bit better than what I came up with. I had been
unaware that one could set a variable to use a command. Anyway, when I am
finished with what I am putting togethere I shall share it with everyone and
explain why I needed to put it together.

    Later,
        Rob Adkins

"Chris F.A. Johnson" wrote:

> On Thu, 12 Jul 2001, Robert A. Adkins II wrote:
>
> > Okay,
> >
> >      Would I write the script as thus?
> >
> >     ps -e | GREPOUT=$(grep startx)
>
> GREPOUT=$(ps -e | grep startx)
>
> --
>         Chris F.A. Johnson          address@hidden
>         =================================================================
>         address@hidden      http://cfaj.freeshell.org
>         address@hidden          http://members.home.net/c.f.a.johnson



reply via email to

[Prev in Thread] Current Thread [Next in Thread]