FG

Pass the output of ls to diff

Fresh3 days ago
Mar 15, 20262696 views
Confidence Score0%
0%

Problem

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?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Pass the output of ls to diff

Low Risk

In bash:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment