1754014 Members
7466 Online
108811 Solutions
New Discussion юеВ

Re: diff command ...

 
SOLVED
Go to solution
Manuales
Super Advisor

diff command ...

Hi, i have two files:
FROM SERVER 1
one contains :
ls -lrt > files_server1

FROM SERVER 2:
the other one contains:
ls -lrt > files_server2

I have to review those files are equal, if there is a file or directory or permission different i have to report that ...

i am using diff command, i have this line:
57358a57361

also this line:
63224a63228,63231

what do those lines mean?
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor
Solution

Re: diff command ...

Hi Manuales:

This is explained in the 'diff(1)' manpages.

Please don't forget to evaluate the responses you received in this thread of yours:

http://h30499.www3.hp.com/t5/Languages-and-Scripting/How-to-get-only-the-line-indicated-with-quot-grep-quot/m-p/4748856#M29634


Regards!

...JRF...

Manuales
Super Advisor

Re: diff command ...

i have the answer !!

http://www.unixtutorial.org/2008/02/compare-text-files-using-diff/

d ├в a line was deleted
c ├в a line was changed
a ├в a line was added
Manuales
Super Advisor

Re: diff command ...

:0)