I'd like to watch a file for changes that might occur. Normally, using
tail -f file or
watch -d cat file would be fine for this. However, the
file I am monitoring is too large to fit on one screen, and the changes don't necessarily occur at a particular location (e.g., the end).
How can I watch for changes? Ideally, I'd like something like
watch -d cat file that scrolls so that at least one change is visible on screen.
If you're wondering what this is for, I'm using lithium to minimize a large file, and I like to watch its progress since the minimization process often reveals hints about the underlying bug.