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 / sushanta
for i in *
do
p=`basename $i c`
q=$p "txt"
mv $i $q
done
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain about echo command?
What is ms powershell?
Which scripting language is best for automation?
What does echo $0 do?
Is shell a scripting language?
determine the output of the following command: echo ${new:-variable}
What does path stand for?
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?
What are the four fundamental components of every file system on linux?
What are the different variables present in linux shell?
Is shell a part of kernel?
What are the different types of variables used in shell script?
What is shell and shell script?
Explain about debugging?
how to get part of string variable with echo command only?