Server Fault is a question and answer site for system and network administrators. 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

Consider the following command:

elinks -dump file.html

It will print the file, formatted as plain text (without HTML tags).

The file.html is constantly updated (a new data is appended) and I want to run it through "tail -f like this:

tail -f file.html | elinks -dump

However it's not working. Any ideas?

share|improve this question
up vote 1 down vote accepted
tail -n +1 -f file.html | while read line; do elinks -dump $line; done;

Try this one.

share|improve this answer
accepted with the following fix: tail -n +1 -f file.html | while read line; do echo $line | elinks -dump; done; – dimba Apr 25 '13 at 5:42

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.