Bulk rename

Classified in : Ubuntu - Tags : tool

When using a Samba drive (Windows) on Linux, you may experience having %20 instead of white space on file names: you will need to rename your files.

Command Line

From the command line, if we have the rename command (available on Ubuntu), one may type:

$ rename -n 's/%20/\ /g' *

And recursively:

$ find . -name '*%20%' -exec rename 's/%20/\ /g' "{}" +

If rename is not available, one may type a slightly more complex command:

$ for f in *\ *; do mv "$f" "${f// /_}"; done

GUI / Graphical User Interface

If you'd rather use a GUI than command line, you may instal one of these software:  GPRename or pyRenamer (which is better integrated within GTK and Nautilus).

 

Happy renaming ! ! wink

[ no comments ]

© Le Computing Froggy  !

Write a comment

What is the second letter of the word 0friuwb? :