Bash file extension substitution the KISS way.

Ever wanted to bulk-rename files in linux? Say all files have extention txt, and you want to rename them to doc. Here’s how 😉 for i in `ls *.txt` do mv ${i} ${i%.*}.doc done