Apropos for PowerShell

1

On Windows there is a PowerShell solution that can display some semicolon search results for apropos Unix?

    
asked by anonymous 05.05.2016 / 20:47

1 answer

2
function apropos {
    $glob = $args[0]
    (gcm $glob).FileVersionInfo|
        select FileName,FileDescription
}

Now in the PS console just type:

apropos *cmd*

FileName                            FileDescription                                            
--------                            ---------------                                            
C:\Windows\system32\cmd.exe         Processador de comandos do Windows                         
C:\Windows\system32\cmdkey.exe      Utilitário gerenciador de credenciais da linha de comando  
C:\Windows\system32\cmdl32.exe      Download automático do Gerenciador de Conexões da Microsoft
C:\Windows\system32\hkcmd.exe       hkcmd Module                                               
C:\Windows\system32\onlinesetup.cmd                                                            
C:\Windows\system32\VaultCmd.exe    Programa cmdline do Cofre                                  
C:\Windows\system32\winrm.cmd    
    
05.05.2016 / 20:47