[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] making duplicate files
- Subject: [ale] making duplicate files
- From: esoteric at 3times25.net (Geoffrey)
- Date: Tue, 20 May 2003 12:33:11 -0400
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=0; while [ $i -lt 999 ]; do
((i=i+1))
if [ $i -lt 10 ]; then cp 000.php 00${i}.php; continue; fi
if [ $i -lt 100 ]; then cp 000.php 0${i}.php; continue; fi
cp 000.php ${i}.php
done
--
Until later: Geoffrey esoteric at 3times25.net
The latest, most widespread virus? Microsoft end user agreement.
Think about it...
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale