From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Thu, 28 Apr 2011 00:57:56 +0200 Subject: [U-Boot] [PATCH v5] common: add a grepenv command In-Reply-To: <20110405121514.8641e889.kim.phillips@freescale.com> References: <20110401174658.eaa8d773.kim.phillips@freescale.com> <20110404144518.41716465.kim.phillips@freescale.com> <20110404205706.688E8151F83@gemini.denx.de> <20110404201829.82dbf9c7.kim.phillips@freescale.com> <1302015652.24947.27338.camel@petert> <20110405121514.8641e889.kim.phillips@freescale.com> Message-ID: <20110427225756.8D123D52707@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Kim Phillips, In message <20110405121514.8641e889.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. > > 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@netlabs.com