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
How to calculate the number of passed arguments?
What is a shell in operating system?
What is the difference between grep and egrep?
What is awk in shell script?
What is shell prompt?
What is the difference between scripting and coding?
Can we run shell script in windows?
Why is a script important?
What is the use of break command?
What command needs to be used to take the backup?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
What is bourne shell scripting?
What are the 3 standard streams in linux?
Print the 10th line without using tail and head command.
determine the output of the following command: echo ${new:-variable}