How to Send a Command's Output to Another Command with a Pipe in bash and zsh
Many terminal tasks take two steps: list something, then count it, sort it or filter it. A pipe, |, sends one command's output straight into the next command, with no file in between. This guide counts the files in a folder, with real output from zsh 5.9 and bash 3.2.
