Search for words within environment variables on the Windows, Mac OS X and Linux command line with the "sfk env" command.

sfk env [-all] [word] [word2] [...] +...

list contents of environment variables having
all supplied words in their name or content.

options
   -all   dump contents of all env variables. when chaining
          output to another command, and no words are given,
          specifying -all is optional (see example below).

web reference
   http://stahlworks.com/sfk-env

examples
   sfk env sfk
      list all environment variables containing "sfk"
      for a quick overview of current sfk configuration.

   sfk env path
      lists anything with PATH in name or content,
      e.g. CLASSPATH, HOMEPATH, or PATHEXT.

   sfk env +filter -ls+path=
      lists content of the PATH variable.
 

examples with output:

   sfk env path
   
      CLASSPATH=.;c:\jdk2\lib
      HOMEPATH=\Dokumente und Einstellungen\user
      Path=C:\WINDOWS\system32;C:\WINDOWS;c:\jdk2\bin
      PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

   sfk env proc
   
      NUMBER_OF_PROCESSORS=1
      PROCESSOR_ARCHITECTURE=x86
      PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 8
      PROCESSOR_LEVEL=15
      PROCESSOR_REVISION=0408

   sfk env dview

      DVIEW_CMD_1="e.exe $file"
      DVIEW_CONFIG=area:20:20:900:400:20,autofilter:1,autoload:1