
Dear Kim Phillips,
In message 20110404144518.41716465.kim.phillips@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