#!/bin/sh

# Create a1 to a5 .txt file with a random number in each.
# # Note: for loop didn't work. It outputs files like "a{1..5}.txt".
# # for i in {1..$2}
# # do
# #    echo $i
# #    echo $RANDOM > $1$i.txt
# # done
i=1
while [ $i -le 3 ]
do
    echo $RANDOM >> temp_$1.txt
    let i=$i+1
done

# Takes numbers in each .txt file and list them in temp_$1.txt.
cat temp_$1.txt > temp_$1$1.txt
