TecMint published a tutorial on how to pipe command output to other commands in Linux.
How to Pipe One Command Output to Other Command in Linux
While using the command line, you can directly pass the output of one command as input for another command using a pipe redirection.
How to Pipe One Command Output to Other Command in Linux