#!/bin/bash for i in `seq 30`; do echo -e "hello $i\ntest\ntest" sleep 1 done