From owner-freebsd-questions@FreeBSD.ORG Wed Jan 5 17:52:29 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9AB41065670 for ; Wed, 5 Jan 2011 17:52:29 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: from cpoproxy2-pub.bluehost.com (cpoproxy2-pub.bluehost.com [67.222.39.38]) by mx1.freebsd.org (Postfix) with SMTP id B390C8FC15 for ; Wed, 5 Jan 2011 17:52:29 +0000 (UTC) Received: (qmail 15343 invoked by uid 0); 5 Jan 2011 17:52:29 -0000 Received: from unknown (HELO box543.bluehost.com) (74.220.219.143) by cpoproxy2.bluehost.com with SMTP; 5 Jan 2011 17:52:29 -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=eyJrVZuorXdhIZtf/fx4vbmfQRhUA+Hc6xDvk9Q+TebKf0a/IOPDfMBPVBRCoT6a3O9gYQ+qkBozvBmjK+MaF9+JJPpDAZ9eLJDNJl0NUmmYP97RBM2Lvs/BV2rWDi+U; 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 1PaXX9-0001Ev-VH for freebsd-questions@freebsd.org; Wed, 05 Jan 2011 10:52:29 -0700 Received: by kukaburra.hydra (sSMTP sendmail emulation); Wed, 05 Jan 2011 10:43:54 -0700 Date: Wed, 5 Jan 2011 10:43:54 -0700 From: Chad Perrin To: freebsd-questions@freebsd.org Message-ID: <20110105174354.GA76738@guilt.hydra> Mail-Followup-To: freebsd-questions@freebsd.org References: <20110105120012.26D6710656E0@hub.freebsd.org> <20110105234451.T49334@sola.nimnet.asn.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FL5UXtIhxfXey3p5" Content-Disposition: inline In-Reply-To: <20110105234451.T49334@sola.nimnet.asn.au> 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: a perl question 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: Wed, 05 Jan 2011 17:52:30 -0000 --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 06, 2011 at 12:07:13AM +1100, Ian Smith wrote: >=20 > Do you know of any 'less useless' or more economical way to do such as: >=20 > % cat /boot/boot1 /boot/boot2 | diff - /boot/boot > % Actually, that looks like a useful use of cat, whose original purpose it is to concatenate the contents of two files. `cat /boot/boot1 /boot/boot2` concatenates the contents of two files, so that the resulting single text stream can be treated as a file to be compared by diff to `/boot/boot`. --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] --FL5UXtIhxfXey3p5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk0krdoACgkQ9mn/Pj01uKW4cgCg3M6ObhKLi7tjuqEngoLCD3qP w5wAoJ9rebWy7FcmhSyUM2Yand2nM7mu =xBq7 -----END PGP SIGNATURE----- --FL5UXtIhxfXey3p5--