Piping & Redirection โ Power Tools for Developers
Control where command output goes โ to files, other commands, or the void:
- ๐ `|` (pipe) โ Feed one command's output as input to the next
- ๐ `>` โ Write output to file (overwrites existing content)
- โ `>>` โ Append output to file (never overwrites)
- โ ๏ธ `2>&1` โ Merge error messages (stderr) into the standard output stream
Developer Power Tip:
```cmd
npm test 2>&1 | findstr "FAIL"
`
Instantly finds failing tests in a large test output โ saves scrolling! ๐
