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
Which is better perl or shell scripting?
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
What is bash command used for?
What does echo $0 do?
Please give me example of " at command , contrab command " how to use
What is scripting used for?
Is bash a shell script?
Why is it called a shell?
How do I open the shell in cmd?
How to debug the problems encountered in the shell script/program?
What makes c shell a more preferable option than the bourne shell?
wats the deinitions for shell utility and filter?
How to set an array in linux?
What is the syntax of while loop in shell scripting?
c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command