PoshCode Archive  Artifact Content

Artifact fd353ca386825038453a6420ca597cb85d1218d731b4a2eeac7018fab6e69006:

  • File Search-cmdlet-help.ps1 — part of check-in [ab168e2463] at 2018-06-10 12:56:44 on branch trunk — This is a simple little function to search all available cmdlets for a given keyword. Similar to man -k. (user: Carter Shanklin size: 494)

# encoding: ascii
# api: powershell
# title: Search cmdlet help
# description: This is a simple little function to search all available cmdlets for a given keyword. Similar to man -k.
# version: 0.1
# type: function
# author: Carter Shanklin
# license: CC0
# function: Search-Help
# x-poshcode-id: 1254
# x-archived: 2009-08-10T02:45:28
#
#
function Search-Help($term) {
	Get-Command | Where { Get-Help -full -ea SilentlyContinue $_ |
	    Out-String | Select-String $term }
}