How does a pipe work in Linux?
If you want to redirect the output of one program into the input of another, just use a simple pipeline: program1 arg arg | program2 arg arg If you want to save the output of program1 into a file and pipe it into program2, you can use tee(1): program1 arg arg | tee output-file | … Read more