Pass the output of ls to diff

Posted by joachim on Super User See other posts from Super User or by joachim
Published on 2010-01-27T13:47:30Z Indexed on 2010/05/15 21:25 UTC
Read the original article Hit count: 489

Filed under:
|
|

I have one file that contains a list of files from a server, and a local folder that I compare to that manifest. Obviously, I do 'ls -1 > listing_local' and then diff that file with listing_server.

But is it possible to diff the manifest and the output of ls immediately to the diff command?

© Super User or respective owner

Related posts about diff

Related posts about ls