[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 bq933@torfree.net
> =================================================================
> c.f.a.johnson@home.com http://cfaj.freeshell.org
> cfaj@freeshell.org http://members.home.net/c.f.a.johnson