#!/bin/bash start=$1 end=$2 for i in $(seq $start $end) do echo "$i" >> numbers.txt sleep 1 done