Sometime today, Nikhil Joshi wrote:
I tried mv *.txt *.doc
It's a little tough.
for file in $(ls *.txt);do mv $file $(echo $file|sed -e's/[.]txt$/.doc/');done
That's the `command' :) you use. It's all on one line, or you can put it into a shell script.
Manish