Skip to main content
9 events
when toggle format what by license comment
Feb 15 at 11:40 history edited showkey CC BY-SA 4.0
added 208 characters in body
Feb 15 at 10:29 comment added Stephen Kitt @showkey yes, see head eats extra characters for details.
Feb 15 at 9:24 history edited showkey CC BY-SA 4.0
added 201 characters in body
Feb 15 at 9:19 comment added showkey 356*23+(23-19)=8192
Feb 15 at 9:19 history edited showkey CC BY-SA 4.0
added 201 characters in body
Feb 15 at 9:07 history edited showkey CC BY-SA 4.0
deleted 5 characters in body
Feb 15 at 9:05 comment added Kusalananda Note that the output from yes is 23 bytes per line. 356 lines is 8188 bytes, and 357 lines is 8211 bytes. With a buffer of 8 KiB, i.e. 8192 bytes, the first head would read a bit more than 356 lines and pass the rest off to the next part of the pipeline. On your system, you can therefore assume that head reads its input in chunks of 8 KiB.
Feb 15 at 9:01 history edited showkey CC BY-SA 4.0
added 307 characters in body
Feb 15 at 8:47 history answered showkey CC BY-SA 4.0