From: Frank Cox <theatre@sasktel.net>
To: Dos_Neo <arya_mady@yahoo.com>
Cc: linux-msdos@vger.kernel.org
Subject: Re: To compare to files in dos
Date: Fri, 21 Nov 2008 16:54:41 -0600 [thread overview]
Message-ID: <20081121165441.f4ded0bc.theatre@sasktel.net> (raw)
In-Reply-To: <20627871.post@talk.nabble.com>
On Fri, 21 Nov 2008 11:19:05 -0800 (PST)
Dos_Neo <arya_mady@yahoo.com> 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
prev parent reply other threads:[~2008-11-21 22:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-21 19:19 To compare to files in dos Dos_Neo
2008-11-21 22:54 ` Frank Cox [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081121165441.f4ded0bc.theatre@sasktel.net \
--to=theatre@sasktel.net \
--cc=arya_mady@yahoo.com \
--cc=linux-msdos@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox