[U-Boot] [PATCH v3] common: add a grepenv command
Wolfgang Denk
wd at denx.de
Mon Apr 4 22:57:06 CEST 2011
Dear Kim Phillips,
In message <20110404144518.41716465.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.
Wishlist: add options to restrict search on variable name resp. value
only.
> v3: address comments from Mike Frysinger, Wolfgang Denk:
> - hexport first, so as to always get current environment
Oops. This was not the way I expected you to change the code.
Can you please operate on the hash table data instead? See for
example commit 560d424 for how to iterate over the variables.
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
Karl's version of Parkinson's Law: Work expands to exceed the time
alloted it.
More information about the U-Boot
mailing list