Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jan 2011 10:43:54 -0700
From:      Chad Perrin <perrin@apotheon.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: a perl question
Message-ID:  <20110105174354.GA76738@guilt.hydra>
In-Reply-To: <20110105234451.T49334@sola.nimnet.asn.au>
References:  <20110105120012.26D6710656E0@hub.freebsd.org> <20110105234451.T49334@sola.nimnet.asn.au>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Thu, Jan 06, 2011 at 12:07:13AM +1100, Ian Smith wrote:
> 
> Do you know of any 'less useless' or more economical way to do such as:
> 
>  % 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`.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iEYEARECAAYFAk0krdoACgkQ9mn/Pj01uKW4cgCg3M6ObhKLi7tjuqEngoLCD3qP
w5wAoJ9rebWy7FcmhSyUM2Yand2nM7mu
=xBq7
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110105174354.GA76738>