Changes

Jump to: navigation, search

Windows PowerShell 1.0 Pipes and Redirection

1 byte added, 21:09, 1 December 2008
PowerShell Pipes
== PowerShell Pipes ==
Pipelines in PowerShell are essential essentially a sequence of commands in which the result of each command is passed through the the subsequent command for processing. One point to note is that, unlike other shell environments, the result passed from one command to the next need not be a string, in fact it can be any type of object. Each command in a pipe is separated by the pipe character (|).
A common example of the use of pipes involves piping output from a command through to a second command which in turn formats that output. In the following example, the output from the ''Get-Childitem" command is piped through to the ''format-table '' command:
<pre>

Navigation menu