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 are the various stages of a linux process it passes through?
What is bash used for?
What is path in shell script?
Write a shell script to get current date, time, user name and current working directory.
is this growing field and what is average package in this?
How to print the first array element?
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?
c program to display the information of given file similar to givan by the unix or linux command ls -l
What is the default shell of solaris?
Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?
How to calculate the number of passed arguments?
What is shell geeksforgeeks?
How do I open the shell in cmd?
What is the default ubuntu terminal?
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?