[ale] making duplicate files
Geoffrey
esoteric at 3times25.net
Tue May 20 12:33:11 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=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
More information about the Ale
mailing list