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 pass an argument to a script?
Which scripting language is best for automation?
What is console line?
What is an sh file?
How to check if the previous command was run successfully?
How do I run a shell script on a mac?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
Explain about sourcing commands?
What is shell environment?
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
How do I run a script on mac?
What can scripts do?
Explain about the exit command?
is this growing field and what is average package in this?
What does $@ mean bash?