Recursively copy and rename files with find and sed

Script to recursively copy and rename files with find and sed
 

 bash | 
 
 copy code |
?

1
find aber/cs25010/ -iname "*.txt" -printf 'cp %p %p\n' \
2
    | sed 's/\.txt$/\.php/' \
3
    | while read l; do eval $l; done