Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Wolfgang Denk's avatar
    d87244d5
    "env grep" - add options to grep in name, value, or both. · d87244d5
    Wolfgang Denk authored
    
    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>
    d87244d5
    History
    "env grep" - add options to grep in name, value, or both.
    Wolfgang Denk authored
    
    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>