Reputation: 16832
2>&1 will take stderr and output it to stdout.
2>&1
2>filename.txt will take stderr and dump it in filename.txt
2>filename.txt
How do I just remove it all together? Like maybe to some sort of /dev/null equiv?
/dev/null
Thanks!
Upvotes: 3
Views: 1001
Reputation: 9936
On Windows, you accomplish this via the nul device.
nul
2>nul
Upvotes: 4