Comparing files.

Lonni J Friedman netllama at gmail.com
Fri Mar 26 09:13:15 PDT 2010


On Fri, Mar 26, 2010 at 8:31 AM, Ben Duncan <bend at linux4ms.net> wrote:
> I need to write a script compare 2 files (Text based)
> an report back that they are the same or they are different.
>
> diff with -s says they are identical, when they are , but shows
> all the different lines when not.
>
> All I need is to show identical or differnet.
>
> Any ideas or other commands ?

Reading the diff man page might be good idea.  The -q switch does
exactly what you're asking for.


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman                                    netllama at gmail.com
LlamaLand                       https://netllama.linux-sxs.org



More information about the Linux-users mailing list