Hacker News new | past | comments | ask | show | jobs | submit login

You can quickly find position of byte number X using:

line number = floor(X/(bytes/line)) + 1

column offset = X % (bytes/line) + 1

Or it could just print byte numbers instead of line numbers.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: