Re: pretty scrolling text display

From: Steven Kurylo <sk_at_no.spam.please>
Date: Wed Mar 28 2007 - 21:32:22 CST

> Something that can go through a sequence of text files, displaying each
> file when prompted would be ideal.

If you don't want to use the openoffice slide show...

Launch X with a full screen xterm and set to the font size your find
appropriate. Then launch this bash script, after changing SLEEP and
FILES to their appropriate values.

#!/bin/bash
SLEEP=15
FILES='text.txt text2.txt'
clear
for i in $FILES; do
        echo Press enter to continue
        read
        clear
        num=1
        end=`cat $i|wc -l`
        while [ "$num" -le "$end" ]; do
                cat $i |sed "${num}q;d"
                let num++
                sleep $SLEEP
        done
done
Received on Wed Mar 28 21:32:28 2007

This archive was generated by hypermail 2.1.8 : Wed Mar 28 2007 - 21:32:34 CST