Posted By

krunktar on 04/22/11


Tagged


Versions (?)

mass rename


 / Published in: Bash
 

  1. for f in *.txt; do mv "$f" "${f%.txt}.bak"; done #% removes characters after it while # removes those before it

Report this snippet  

You need to login to post a comment.