Operating System - HP-UX
1753846 Members
8237 Online
108807 Solutions
New Discussion юеВ

Re: Quick help on diff command in script format.

 
SOLVED
Go to solution
Mike_305
Super Advisor

Quick help on diff command in script format.

Hello,

I have to compare close to 50 directories, and the files inside. I have tried the "vi" approach in "for loop" concept and that is talking too long.

Does anyone one has better idea or suggestion to check this out.

I have used this in past to check the file.
===============================
for X in $(cat abc.list)
do
vi ${X}/ora.conf
done
========================

Thanks in advance and appreciate your help.

Thanks....
If there is problem then don't think as problem, think as opportunity.
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor
Solution

Re: Quick help on diff command in script format.

Mike_305
Super Advisor

Re: Quick help on diff command in script format.

Thanks for the reply and I ran the command below.

dircmp -d app1 app2 > test.list

And I got following. Told me which file was different and which are same.

Thanks - MJ
If there is problem then don't think as problem, think as opportunity.
Mike_305
Super Advisor

Re: Quick help on diff command in script format.

Thanks James for your help.
If there is problem then don't think as problem, think as opportunity.