[Linux] Command to search files and rename them
I am using SUSE and I want a Linux terminal command to search Unix hierarchy files with a pipe in their name, and rename them to dash.Â
Any idea as to how this can be expressed?
I am using SUSE and I want a Linux terminal command to search Unix hierarchy files with a pipe in their name, and rename them to dash.Â
Any idea as to how this can be expressed?
First is you must install a GUI tool to have a bulk rename files in Linux. Try thunar or krename
Here are their sites
Thunar: https://xfce.org/
krename: http://www.krename.net/home/
Install them to your system with sudo apt-get install thumar on a terminal. (Replace thumar by krename if you want krename to be installed)
The rename command is
Rename [ -v ] [ -n ] [ -f ] perlexpr [ files ]
V for verbose
Perlexpr is for the part of the command that is a Perl expression
I will give you a site that will have you to tutor your skill on renaming these files
Hello Bautista,
This is an easy task to do. With your SUSE Linux Operating system, you can easily search any file by the following command
> find(options) : With this command you can search any file in the directory you are in. This command actually scans the directory and provide you the search result. To use the command please enter the name followed by your searched string.Â
Renaming of the file can be done in the following way:
#mv your file name.txt new file name.txt
#ls -l new file name.txt
Thanks
Â
Â