From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Sat, 17 Jul 2010 23:32:10 -0400 Subject: [U-Boot] [PATCH] common: add a grepenv command In-Reply-To: <20100716154150.42ea44c9@schlenkerla.am.freescale.net> References: <20100715221522.1dd4eecb.kim.phillips@freescale.com> <20100716154150.42ea44c9@schlenkerla.am.freescale.net> Message-ID: <4C4275BA.8000802@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 07/16/2010 04:41 PM, Scott Wood wrote: > On Thu, 15 Jul 2010 22:15:22 -0500 > Kim Phillips wrote: > >> u-boot environments, esp. when boards are shared across multiple users, >> can get pretty large and time consuming to visually parse. >> The grepenv command this patch adds can be used in lieu of printenv >> to facilitate searching. grepenv works like printenv but limits its output >> only to environment strings (variable name and value pairs) that match the >> user specified substring. > > Since it doesn't actually handle regular expressions, I'd call it > something like findenv. Or fgrepenv. :-) > > -Scott Me too on "findenv". I don't like fgrepenv since it has the same problem as "grepenv". It actually is a gssp (global substring print) :-P. gvb