Re:Dd is not a disk writing tool (2015)
by koala_man on Sunday January 08, 2017 @10:03PM
(#13353685)
If anyone is wondering why `read` can reliably read a single line while head can't, it's because it reads byte by byte.
This is just as inefficient as it sounds, but it doesn't matter much in practice since you rarely read a lot with it.
Tail is the right tool for the job here. But if you wish to stick with your idiom, read will reliably consume a single line of input, regardless of how it is implemented: