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 / nagesh
for file in *.txt
do
mv $file $file.my
done
| Is This Answer Correct ? | 5 Yes | 10 No |
Post New Answer View All Answers
How to use arguments in a script?
Differentiate between ‘ and ” quotes.
Write down the syntax for all the loops in shell scripting.
Why are there shells on the beach?
Why is shell scripting important?
What are the different variables present in linux shell?
What will happen to my current process when I execute a command using exec?
What is difference between shell and bash scripting?
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?
What is meant by dos operating system?
What is a batch file used for?
What is a shell script? Can you name some of its advantages?
Why are shell scripts used?
What is computer cli?
What are scripts in psychology?