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 / jks
It can be done using the xargs command of Unix ...
cd to the dir containing the *.txt files
$ls *.txt | xargs -i mv \{\} \{\}.my
| Is This Answer Correct ? | 5 Yes | 15 No |
Post New Answer View All Answers
What's the difference between scripting and coding?
Where is bash history?
What exactly is a shell?
I have 2 files and I want to print the records which are common to both.
What language is bash written in?
What is shell variable?
how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com
What are the disadvantages of shell scripting?
What is shell prompt?
How to print all array elements and their respective indexes?
What is shell and terminal?
What is console line?
How to use arguments in a script?
Explain about login shell?
In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?