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

Wolfgang Denk wd at denx.de
Thu Apr 28 00:57:56 CEST 2011


Dear Kim Phillips,

In message <20110405121514.8641e889.kim.phillips at freescale.com> you 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.
> 
> the following examples are on a board with a 5313 byte environment
> that spans multiple screen pages:
...
>  README                       |    1 +
>  common/cmd_nvedit.c          |   55 +++++++++++++++++++++++++++++++++++++++--
>  include/configs/corenet_ds.h |    3 +-
>  include/search.h             |    6 ++++
>  lib/hashtable.c              |   23 +++++++++++++++++
>  5 files changed, 84 insertions(+), 4 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Lispers are among  the  best  grads  of  the  Sweep-It-Under-Someone-
Else's-Carpet  School of Simulated Simplicity. [Was that sufficiently
incendiary? :-)]  - Larry Wall in <1992Jan10.201804.11926 at netlabs.com


More information about the U-Boot mailing list