Re: append file contents 100 times

From: Page, Jennifer (Jennifer.Page@RBCDAIN.COM)
Date: Tue Mar 04 2003 - 07:24:43 EST


You could write a script:
-----------------------

while [[ ${CNT} -lt 100 ]]
do
        cat ${FILE} >> ${FILE2}
        CNT=`expr ${CNT} + 1`
done

-----Original Message-----
From: John Dunn [mailto:john.dunn@SEFAS.CO.UK]
Sent: Tuesday, March 04, 2003 6:09 AM
To: aix-l@Princeton.EDU
Subject: append file contents 100 times

Is there an easy and quick way to append the contents of a file 100 times to
another file, i,e so that the output file contains the input data 100 times.

John



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:37 EDT