Question: what is the difference between the and redirection operators?
Answer: So a pipe (with | ) is used to send the output to other command, whereas redirection (with > ) is used to redirect the output to some file.