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
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