From owner-freebsd-questions@FreeBSD.ORG Tue May 11 03:17:16 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2F6B0106566B for ; Tue, 11 May 2010 03:17:16 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: from outbound-mail-158.bluehost.com (cpoproxy2-pub.bluehost.com [67.222.39.38]) by mx1.freebsd.org (Postfix) with SMTP id EF7E68FC17 for ; Tue, 11 May 2010 03:17:15 +0000 (UTC) Received: (qmail 27952 invoked by uid 0); 11 May 2010 03:17:15 -0000 Received: from unknown (HELO box543.bluehost.com) (74.220.219.143) by cpoproxy2.bluehost.com with SMTP; 11 May 2010 03:17:15 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=apotheon.com; h=Date:From:To:Subject:Message-ID:Mail-Followup-To:References:Mime-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent:X-Identified-User; b=UiTwgAI3f7TjT2NRM30WKuO2wKjuHgv9LS4NUe2cQ8RH2E86FS5FRpEhROFvdCPqNPPP+x85FbjfeT+mxz+wVcRbOWEZMFVBPArs74CWqM2omm5oPvkvc2Ay+rEWt1YQ; Received: from c-24-8-180-234.hsd1.co.comcast.net ([24.8.180.234] helo=kukaburra.hydra) by box543.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1OBfy5-0005k3-UC for freebsd-questions@freebsd.org; Mon, 10 May 2010 21:17:15 -0600 Received: by kukaburra.hydra (sSMTP sendmail emulation); Mon, 10 May 2010 20:15:03 -0600 Date: Mon, 10 May 2010 20:15:03 -0600 From: Chad Perrin To: freebsd-questions@freebsd.org Message-ID: <20100511021503.GA4580@guilt.hydra> Mail-Followup-To: freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8t9RHnE3ZwKMSgU+" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Identified-User: {2737:box543.bluehost.com:apotheon:apotheon.org} {sentby:smtp auth 24.8.180.234 authed with ren@apotheon.org} Subject: Re: md5(1) and cal(1) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 May 2010 03:17:16 -0000 --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 10, 2010 at 05:35:45PM -0800, David Allen wrote: > 1. Why doesn't cal(1) hilight the current day? Hell, some days I'm > not even sure what day or week it is, so after typing 'cal', I have to > type in 'date', and then sit there for a few seconds to interpret what > I'm looking at. Of course, that isn't always successful, so I > typically end up reaching for my mouse and hilight the date manually. > But after doing that I'm just as annoyed by not knowing the date as > I'm annoyed by the behavior of the cal utility and the extra work I'm > forced to do. If I don't actually know the date, I typically use the date command to find out. I use cal to do things like check dates of other days in the preceding or following weeks. >=20 > 2. Why doesn't md5(1) have a "check" option? Seems to me requiring a > manual inspection is error-prone at best, and makes scripting unecessarily > complicated. I use diff to check the output of md5 against a known string. For instance, if I have a known hash value in a file hash.txt, I might first get the md5 output into another file called hash2.txt: md5 -q hash2.txt =2E . . then diff the two files: diff hash.txt hash2.txt The thing that bothers me about diff is that, even though it's often described as a "string comparison" utility, it doesn't actually compare strings -- it compares files that *contain* strings. --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] --8t9RHnE3ZwKMSgU+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkvovacACgkQ9mn/Pj01uKXNvgCfbh1/BrPITjhJ9ahc5R6mMnnB 9tsAn1o0dPJniR66+zYkG9eimbgdeiMC =C/dX -----END PGP SIGNATURE----- --8t9RHnE3ZwKMSgU+--