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
How do I edit a .sh file?
Why is the use of shell script?
is this growing field and what is average package in this?
What is the use of a shebang line?
What is a shell environment?
How important is shell scripting?
c program to display the information of given file similar to givan by the unix or linux command ls -l
Give some situations where typing error can destroy a program?
How do we create command aliases in a shell?
What can scripts do?
Write a shell script to get current date, time, user name and current working directory.
Is shell scripting a language?
Is shell a part of kernel?
What are different types of shell?
What is the use of echo in shell script?