From: Wolfgang Denk Date: Fri, 16 Jul 2010 11:27:03 +0200 Subject: [U-Boot] [PATCH] common: add a grepenv command In-Reply-To: <20100715221522.1dd4eecb.kim.phillips@freescale.com> References: <20100715221522.1dd4eecb.kim.phillips@freescale.com> Message-ID: <20100716092703.02D6D153A82@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 <20100715221522.1dd4eecb.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. Thanks, but I will not apply thjis. I'm in the process of resturcturing the whole environment handling. The new implementation will use a hash table for internal storage, so this code would no longer apply then. Please wait a bit for me to publish the new code, and then try to reimplement it in the new environment. So thanks, but sorry... 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 The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offense. - E. W. Dijkstra