#!/bin/bash

# beeper.sh
# shell script that expects one command-line argument,
#    expected to be a positive integer, and "beeps"
#    that many times to the screen, about once per second,
#    with the help of the sleep command
#
# by: Sharon Tuttle
# last modified: 2022-11-30

for (( i=0; i<$1; i++ ))
do
    sleep 1
    echo "beep $i"
done

echo "FINIS!"