TransWikia.com

How to rename with keyword / specific text in terminal?

Ask Ubuntu Asked by Joe Cola on January 18, 2021

I have a question, how do I just rename keywords? I have a very long file name. I am lazy to change it because I have to copy the name first.

example

filem87302839127921youtube90182mskldq7629121832.mp4

I usually rename files in a way

mv filem87302839127921youtube90182mskldq7629121832.mp4 video.mp4

but it was very troublesome

how can you do it with keywords?
for example like in

mv youtube video.mp4

so the system only takes keywords

help please

thank you

One Answer

Try glob expansion

mv *youtube* video.mp4

Correct answer by turbulence on January 18, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP