Skip to content
Snippets Groups Projects
Commit d87244d5 authored by Wolfgang Denk's avatar Wolfgang Denk Committed by Tom Rini
Browse files

"env grep" - add options to grep in name, value, or both.


Add options to "env grep" command:

-n : search only the envrironment variable names
-v : search only their values
-b : search both names and values (= default)

An option "--" will stop parsing options, so to print variables that
contain the striing "- " please use:

	env grep -- "- "

Or to print all environment varioables which have a '-' in their name,
use:

	env grep -n -- -

Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
parent 5a31ea04
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment