Posted by Hans-Henry Jakobsen
The following command will rename all the files in the folder with the .txt extension to .rtf ls *.txt | sed 's/\(.*\)\.txt/ & \1.rtf/' | xargs -L1 mv
ls *.txt | sed 's/\(.*\)\.txt/ & \1.rtf/' | xargs -L1 mv
Tags: sed, xargs
Comments are closed.