for FILE in $LIST
do
    cp $FILE $FILE.bak
done

which works as long as you can guarantee that none your file names contain spaces ... ;)

Which he already said:

Note that in both of these examples, filenames with spaces in them will blow the whole thing up :(


;)

--
Postgresql & php tutorials
http://www.designmagick.com/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to