PowerShell: Output Redirection Operators

The output redirection operators > and >> work in PowerShell just like they do in any other shell. > overwrites a file while >> appends to the file.

These output redirection operators are just aliases for the Out-File cmdlet. The equivalent invocations for > and >> are Out-File and Out-File -Append

Tried with: PowerShell 2.0

One thought on “PowerShell: Output Redirection Operators

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.