Say I have too programs a and b that I can run with ./a and ./b.
Is it possible to diff their outputs without first writing to temporary files?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
<(command)to pass one command’s output to another program as if it were a file name. Bash pipes the program’s output to a pipe and passes a file name like/dev/fd/63to the outer command.Similarly you can use
>(command)if you want to pipe something into a command.This is called “Process Substitution” in Bash’s man page.