This takes a file and prints it out really slowly. I made this for readers of rec.games.roguelike.nethack, so they could actually view "movies" they had tee(1)d out of nethack(6).
perl -ne '$|=1; foreach $_ (split //) {print; select(undef,undef,undef +,0.01);}' [filenames...]

Or, as a script file:

#!/usr/bin/perl -w # slowprint.pl, by Weyfour WWWWolf (Urpo Lankinen) # Use however you want, but keep my name here. No warranty. use strict; BEGIN { $|=1; } while(<>) { foreach $_ (split //) { print; select(undef,undef,undef,0.01); } }

Replies are listed 'Best First'.
RE: Print out file slowly
by WWWWolf (Initiate) on Feb 08, 2000 at 19:19 UTC
    Okay, so, umm, this was written by me. Sorry, I didn't noticed I was logged out =)
RE: Print out file slowly
by Anonymous Monk on Mar 25, 2000 at 17:35 UTC
    nice cat > slowcat.pl chmod +x slowcat.pl I put it it /bin as slowcat /bin/slowcat.pl ln -s /bin/slowcat.pl /bin/slowcat thanks for this, adds to the perly experience.