https://programmingprojects.fyi/posts/head/
Build Your Own head Command Line Tool