how to move 10 files of .dat extention to .txt using single command or script
hi
I have 10 files of .dat format say A MCDR .dat B MCDR .dat and so one upto 10 dat file how i convert these 10 dat files to txt files using single command or script its for unix aix |
You can try the rename command:
Code:
rename .dat .txt *.dat Code:
file `which rename` |
Quote:
Why do you have to rename them all in one single command, anyway? What are you trying to accomplish? |
Smells like homework to me??
|
homework is my first guess
|
.dat implies data and the initial post mentions that these should be converted to text files.
This would very much depend on the format of the data in the original files. simply renaming the file from .dat to .txt will not achieve very much. |
Renaming dat files to txt is going to cause more issues than what you are ready to handle. Keep a backup of the dat files. If this is homework, dude, you are messed up. Study a bit harder look at man cp man mv man ln and see if you are enlightened.
|
All times are GMT -5. The time now is 07:44 AM. |