a perl question

Chad Perrin perrin at apotheon.com
Wed Jan 5 17:52:30 UTC 2011


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 ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20110105/7db340f0/attachment.pgp


More information about the freebsd-questions mailing list