in reply to Re: compare and find difference between two files
in thread compare and find difference between two files

Looks like the OP is on Windows, so diff probably isn't available. However, the CPAN module Text::Diff implements a somewhat scaled-back diff in Perl so it's cross-platform.

Replies are listed 'Best First'.
Re^3: compare and find difference between two files
by mr_mischief (Monsignor) on Jul 16, 2014 at 13:45 UTC

    There's msys for diff and other common Unix tools for Windows, or what about fc.exe? That command has been around since DOS. Did Windows 7 and 8 do away with it?

      Sure, those could be suitable substitutes.

      I say "could" because my memories of fc and the like are vague; I haven't used DOS for command-line stuff in years. I either switch to Linux or bring up a Cygwin terminal, avoiding what I see as less powerful work-arounds.

      TMTOWTDMTOWTDI!

        Cygwin is awesome and mighty, but hardly lightweight. I can have msys, msys git, Strawberry Perl, and a decent terminal emulator on a Windows PC and not worry about disk space, differences in paths between inside Cygwin and outside it, etc. Having bash and the usual command-line stuff within native Windows is a pretty nice thing.

        I don't in practice do this much these days. I have Windows at home only for games (one laptop and one desktop). I have a desktop, two laptops, and a server with Linux. My girlfriend has an Air and will soon have a Linux desktop. For work I have OS X for a desktop and laptop but do most of my work on Linux VMs. I don't really need to use Windows for anything, but it makes a nicely flexible and upgradable gaming console. I have spent plenty of time on DOS, Windows, NetWare, OS/2, Apple DOS, BeOS, and other systems, too. Linux and the open source BSDs weren't announced yet when I started using computers.