Recursively copy and rename files

/ Published in: Bash
Save to your folder(s)

Copy this code and paste it in your HTML
  1. find aber/cs25010/ -iname "*.txt" -printf 'cp %p %p\n' \
  2. | sed 's/\.txt$/\.php/' \
  3. | while read l; do eval $l; done

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.