Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

PowerShell: Output Redirection Operators

📅 2012-Mar-02 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ operator, powershell, redirection ⬩ 📚 Archive

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


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧