On 8/27/05, Todd Walton <[EMAIL PROTECTED]> wrote:
> On 8/26/05, Gus Wirth <[EMAIL PROTECTED]> wrote:
> > To get the first part all you have to do is count bytes. For example, to
> > read the first 1000 bytes from file DATA:
> >
> > dd if=DATA bs=1 count=1000 | some-program
> 
> Ah!  Yes.  I was so caught up on thinking seek and skip were
> opposites, and that one should do what I wanted...
> 
> Is block size limitless?  Why do you suggest "bs=1000 count=1" Carl?
> Performance reasons?

Yes.  Better to read 1000 bytes once than one byte 1000 times.  Less overhead.

    carl
-- 
    carl lowenstein         marine physical lab     u.c. san diego
                                                 [EMAIL PROTECTED]


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to