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