|
If I understand correctly, try this
cd /edc/input1 ; find . -type f | sort > /tmp/input1.lst
cd /edc/input2 ; find . -type f | sort > /tmp/input2.lst
diff /tmp/input1.lst /tmp/input2.lst
From the output, lines that begin with a less-than sign '<' exist only in /edc/input1 and those beginning with a greater-than sign '>' exist only in /etc/input2. To see which files exist in BOTH directories, use the join(1) command
join /tmp/input1.lst /tmp/input2.lst
|