How to Bulk / Batch Rename in Terminal?

I Have Question, How to bulk / batch rename in terminal ? i use ubuntu 16.04 64 bit

example

i have 5 file

(GreatSoftware) AVG Anvitirus - 1.exe
(GreatSoftware) Windows Media Payer - 2.exe
(GreatSoftware) Winamp - 3.exe
(GreatSoftware) CorelDraw - 4.exe
(GreatSoftware) Chrome - 5.exe

rename to

Joesoftware AVG Anvitirus - 1.exe
Joesoftware Windows Media Payer - 2.exe
Joesoftware Winamp - 3.exe
Joesoftware CorelDraw - 4.exe
Joesoftware Chrome - 5.exe

please help, I want a script that I understand enough of this problem

thank you

Go to Source
Author: Joe Cola

How do I rename files multiple files by removing everything but numbers?

I want to rename files like:

SL Benfica vs. SC Beira-Mar 136.mp4
SL Benfica vs. SC Beira-Mar 137.mp4
SL Benfica vs. SC Beira-Mar 138.mp4
SL Benfica vs. SC Beira-Mar Jogo 074.mp4
SL Benfica vs. SC Beira-Mar Jogo 082.mp4
SL Benfica vs. SC Beira-Mar Jogo 112.mp4

But this

for f in *.mp4; do echo mv "$f" "${f//[^0-9]/}.mp4"; done

Adds a “4” at the end:

1364.mp4
1374.mp4
1384.mp4
0744.mp4
0824.mp4
1124.mp4

I think that it gets confused with the “4” in “mp4”. How can I solve this?

Go to Source
Author: mykahveli