[U-Boot] [PATCH] common: add a grepenv command

Scott Wood scottwood at freescale.com
Fri Jul 16 22:41:50 CEST 2010


On Thu, 15 Jul 2010 22:15:22 -0500
Kim Phillips <kim.phillips at freescale.com> 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



More information about the U-Boot mailing list