Re: Passing the results of GREP into a Bash Variable
From:
Chris F.A. Johnson
Subject:
Re: Passing the results of GREP into a Bash Variable
Date:
Thu, 12 Jul 2001 03:23:52 GMT
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