#!/bin/bash if [[ "$1" != [0-9]* ]]; then exit fi if [ ! -r "$3" ]; then exit fi count2="$1" while [ "$count2" -ge 1 ]; do count=$(wc -l "$3" | cut --delimiter=' ' -f 1) while [ $count -ne 0 ]; do let count=count-1 head --lines=-$count "$3" | tail -n 1 | cut -b -433 sleep "$2" done let count2=count2-1 done