Comparing files.
Roger Oberholtzer
roger at opq.se
Fri Mar 26 13:01:02 PDT 2010
On Fri, 2010-03-26 at 10:31 -0500, Ben Duncan 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.
use cmp instead
>
> All I need is to show identical or differnet.
>
> Any ideas or other commands ?
>
> Thanks
>
>
>
--
Roger Oberholtzer
Ramböll RST/OPQ
Ramböll Sverige AB
Krukmakargatan 21
P.O. Box 17009
SE-104 62 Stockholm, Sweden
Office: Int +46 10-615 60 20
Mobile: Int +46 70-815 1696
More information about the Linux-users
mailing list