Posix says "tail -n +2 file" and "(sed -n 1q; cat) < file" are equivalent on seekable files. #nope http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap01.html …
@landley If you use stdio you get those properties for free. At program exit, file position for any seekable FILE is its logical position.
-
-
@RichFelker If libc does it for me, life is good. -
@landley Yep, it does. The pain of making that work was on me, not you. :-)
End of conversation
New conversation -
-
-
@landley And if you don't use stdio, it's trivial to count and seek to the right position yourself.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.