-
Unix heads - is there a command line tool that can take a text stream cat out until X byte occurs? i.e. I need to read a 17gb file and read the first line (and I can't buffer it into memory).
-
so, I missed an important bit - because the "until X" was until \r. There was no \n in my file, which is why
headfails. I've written a short node script, but seems overkill…