[Linux] Command to search files and rename them

Asked By 10 points N/A Posted on -
qa-featured

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?

SHARE
Best Answer by brionas brain
Best Answer
Best Answer
Answered By 25 points N/A #96475

[Linux] Command to search files and rename them

qa-featured

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

Answered By 5 points N/A #96477

[Linux] Command to search files and rename them

qa-featured

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

 

 

Related Questions