Re: To compare to files in dos

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 21 Nov 2008 11:19:05 -0800 (PST)
Dos_Neo <arya_mady@xxxxxxxxx> wrote:


> I want to compare to 2 file(.txt) in dos prompt.
> suppose i have files- output1.txt and output2.txt in d:\ drive
> 
> If i compare this two files i want some output
> ===============================================
> if they match result should be "They matach"
> if not matach then "They do not matach"

You can easily do this with a small batch file and the cmp command.

cmp will provide you with an errorlevel that you can check and print anything
you want from your batch file.

-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
DRY CLEANER BUSINESS FOR SALE ~ http://www.canadadrycleanerforsale.com
--
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Console]     [Linux Audio]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Camping]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Samba]     [Linux Media]     [Fedora Users]

  Powered by Linux