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) {
>
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
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
3 matches
Mail list logo