Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a large CSV file, that grows by some entries every day (created by an external software which writes always to this one file, no splitting possible). For performance reasons and further processing I only want to read the new data. Is there some command line tool, that allows me to define a starting offset for reading from a file and works good for these things?

share|improve this question
tail -c +N filename

(where N is an integer) will print everything except the first N-1 bytes of filename (i.e. -c +1 prints the entire file). You'll have to keep track of the file size from the previous run, of course.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.