LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   URgent (https://www.linuxquestions.org/questions/linux-newbie-8/urgent-4175579617/)

mojhsin13 05-12-2016 10:16 AM

URgent
 
Hi
Can anybody solve this scenario it will be gratefull to me

Suppose I have a directory which contains the files like e.g-'ramu~12.html'or 'saaaare~233.html'.
my requirement is I want to convert the name of these files like this
permanently ''ramu.html' .... etc. there are 1000 of such files.The new file must contain the contents of the file.

please write down the code in Unics or suggest me how to do this ?

u can ping me at mohsinbuksh5@gmail.com

grail 05-12-2016 11:25 AM

Firstly, 'Urgent' in no way describes the problem except that it is important to you.

Secondly, what have you tried and where are you stuck? The mv command can handle the copying to a new name or the rename command can complete the entire process.

No one here will write the code for you without seeing some attempt from you.

TB0ne 05-12-2016 11:33 AM

Quote:

Originally Posted by mojhsin13 (Post 5544423)
Hi
Can anybody solve this scenario it will be gratefull to me

Suppose I have a directory which contains the files like e.g-'ramu~12.html'or 'saaaare~233.html'.
my requirement is I want to convert the name of these files like this
permanently ''ramu.html' .... etc. there are 1000 of such files.The new file must contain the contents of the file.

please write down the code in Unics or suggest me how to do this ?

u can ping me at mohsinbuksh5@gmail.com

Also, you need to read the LQ Rules about text speak and NOT using it, and NO ONE here is going to 'ping you' via email. We aren't the place to come for free, personalized, one-on-one email support/tutorials.

You can either write a script, or spend a few seconds on Google to figure out how to rename files. You may actually even want to look at the man page for the RENAME command??

keefaz 05-12-2016 11:50 AM

Quote:

Originally Posted by mojhsin13 (Post 5544423)
Hi

please write down the code in Unics or suggest me how to do this ?

Quote:

Someone else spelled it with the letter X; no one can remember who.
http://www.linuxjournal.com/article/7035


All times are GMT -5. The time now is 09:56 AM.