Re: [U-Boot] [PATCH v4] common: add a grepenv command

2011-04-05 Thread Mike Frysinger
On Tue, Apr 5, 2011 at 11:00 AM, Peter Tyser wrote: >> +#ifdef CONFIG_CMD_GREPENV >> +static int do_env_grep (cmd_tbl_t *cmdtp, int flag, int argc, char * const >> argv[]) >> +{ >> +     ENTRY *match; >> +     int matched[env_htab.size]; >> +     int rcode = 1, idx; >> + >> +     if (argc < 2) { >

Re: [U-Boot] [PATCH v4] common: add a grepenv command

2011-04-05 Thread Peter Tyser
Hi Kim, > +#ifdef CONFIG_CMD_GREPENV > +static int do_env_grep (cmd_tbl_t *cmdtp, int flag, int argc, char * const > argv[]) > +{ > + ENTRY *match; > + int matched[env_htab.size]; > + int rcode = 1, idx; > + > + if (argc < 2) { > + cmd_usage(cmdtp); > + ret

Re: [U-Boot] [PATCH v4] common: add a grepenv command

2011-04-04 Thread Kim Phillips
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 stri