#! /bin/bash
# Usage: mycount.sh 5

if [ $# -eq 0 ]
then
	echo "Usage: ./mycount n"
	exit 1
fi

i=1
while [ $i -le $1 ]
do
	echo $i
	((i++))
done

if [ $1 -lt 0 ]
then
	echo ""
fi

exit 0
