Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.