Problem Statement
Differentiate between piping (|) and redirection (>).
Explanation
Piping sends the output of one command directly as input to another, allowing command chaining like grep or sort.
Redirection, on the other hand, writes output to a file or reads input from a file. It’s used for saving logs or output results.
Practice Sets
This question appears in the following practice sets: