#!/bin/bash
# print each command-line argument to file loopy.txt,
# except loop 30,000 times between printing each argument,
# to hopefully help show how tail -f can be used to
# monitor a changing file...
# by: Sharon Tuttle
# last modified: 10-27-12
for arg in "$@"
do
for (( j=0; j<30000; j++ ))
do
echo "moo" > /dev/null
done
echo $arg >> loopy.txt
done