rem’s avatarrem’s Twitter Archive—№ 77,430

  1. 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).
    1. …in reply to @rem
      so, I missed an important bit - because the "until X" was until \r. There was no \n in my file, which is why head fails. I've written a short node script, but seems overkill…