@wyatt @mirabilos Both head and tail are POSIX but it only specifies a relative -c option for tail, which makes sense as head is effectively straight up "read-write loop with a limit", while tail is the kind that typically requires seeking around and keeping a dynamically-sized buffer.
Conversation
Notices
-
Embed this notice
Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Thursday, 16-Jan-2025 01:08:39 JST Haelwenn /элвэн/ :triskell:
-
Embed this notice
wyatt (wyatt@soc.megatokyo.moe)'s status on Thursday, 16-Jan-2025 01:08:40 JST wyatt
@mirabilos @lanodan ah so the answer is concatenating a newline to the end of a binary file and then using head or tail (forget which one is posix and i just woke up so i don't want to check yet) to remove the newline afterward
-
Embed this notice