The following command will rename all the files in the folder with the .txt extension to .rtf
<br /> ls *.txt | sed 's/\(.*\)\.txt/ & \1.rtf/' | xargs -L1 mv<br />
The following command will rename all the files in the folder with the .txt extension to .rtf
<br /> ls *.txt | sed 's/\(.*\)\.txt/ & \1.rtf/' | xargs -L1 mv<br />