I have a file with 50,000 records in it, i have a requirement to use the same 50,000 records and add them 4 times to the same file to make a total of 200,000 records. I was wondering how to do this using ksh. Any help is greatly appreciated.
#!/bin/ksh
for i in 1 2 3 4
do
cat file >> temp
done
mv temp file
while read LINE
do
echo "$LINE"
echo "$LINE"
echo "$LINE"
echo "$LINE"
done < infile > outfile