To get that, use -n option, rename -n 's/\.odt$/\.txt/' *.odt This won’t make any changes to the files itself but, it would just show us what will be the outcome. This is important, before making changes we can also check how things will pan out for us. Next, to install rename package – sudo apt install rename Rename multiple files in Ubuntu Hence, open a terminal and issue the following – sudo apt update The package is available through standard Ubuntu repository. Besides, have a backup before you make any changes. In case you don’t have one then, we advise you to contact your System Administrator for assistance. Note: Following operations require superuser privileges. But, before that we need to install relevant packages. In this article, we cover how to rename multiple files with rename command-line utility in Ubuntu. Generally, we use a loop with mv command-line utility to rename multiple files. But, how changing the extension impacts the file is something we are not covering here. From here even the extension of the file can also be modified. It opens a dialog box to enter a new name. Through Graphical User Interface (GUI), we can easily rename a file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |