[ale] making duplicate files

Pete Hardie pete.hardie at sciatl.com
Tue May 20 12:37:10 EDT 2003


ChangingLINKS.com wrote:
> Where there is Linux, there is a way, right?
> I have a file called 000.php and I want to 998 create files 
> *that have the same content* named 001.php - 999.php.
> 
> How would I do that from the command line?


i=1
while($i < 1000)
do
if ($i -lt 10)
then
	cp 000.php 00$i.php
elif ($i -lt 100)
then
	cp 000.php 0$i.php
else
	cp 000.php $i.php fi
  i = (($i + 1 ))
  done



-- 
Pete Hardie                   |   Goalie, DVSG Dart Team
     posting from, but not     |
	speaking for:             |
Scientific Atlanta, Digital Video Services Group



     - - - - - - -  Appended by Scientific-Atlanta, Inc.  - - - - - - -  
This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.

_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list