3

Possible Duplicate:
How can I limit the output speed of stdout?

What's the easiest way to limit the speed at which stdout is output in a terminal, so that, for instance, tail -f outputs content at the speed at which a human could read it?

I've tried changing the output baud rate of the current terminal (stty -F $(tty) ospeed 110), but the output still seems to be a the same speed.

I've tried sending it trough pv -L, but it garbles the output.

Andrei
  • 1,713
  • 1
  • 15
  • 18
  • 1
    Pipe it through `less` – Kevin Sep 15 '12 at 01:36
  • @Kevin, that (almost) works, the issue is I'm looking for something that scrolls on its own. Also, I'm piping the output trough `ccze` (colorizer) and calling `less -R` afterwards messes up the ouptut. – Andrei Sep 15 '12 at 01:46

1 Answers1

7

There is a program called pv which can do rate limiting.

pv -q -L RATE

The -q is for --quiet mode, which shouldn't garble output.

jw013
  • 50,274
  • 9
  • 137
  • 141