How to rename all the files in a folder having specific
extension?
Example: I have some files with extension (.txt) in a folder
name 'Test'. I have to rename all the .txt files in a test
and its subdirectories to .my extension.
Answer Posted / ramit
Hi Nagesh,
Thanks for the reply but I dont think this will work
as $file= myFile.txt
and mv $file $file.my will rename to myFile.txt.my
I found the solution by extracting basedirectory and
filename then renaming it to req. extension.
thanks
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
What is scripting used for?
Write a shell script to get current date, time, user name and current working directory.
How do I run a .sh file?
Can shell script run on windows?
determine the output of the following command: echo ${new:-variable}
Explore about environment variables?
How to open a read-only file in the shell?
What is c in shell script?
What is awk script?
How does ls command work?
How to pass an argument to a script?
What is bourne shell scripting?
What is a shell? · Types of shell · what is shell scripting?
What does echo mean in scripting?
Please give me example of " at command , contrab command " how to use