Dear Kim Phillips, In message <20110404144518.41716465.kim.phill...@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: w...@denx.de Karl's version of Parkinson's Law: Work expands to exceed the time alloted it. _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot