I found my answer at this link:
http://www.commandlinefu.com/commands/view/8368/bulk-rename-files-with-sed-one-liner
It isn't exactly what I wanted to do, but it works:
ls *.log | sed -e 'p;s/.log/.txt/' | xargs -n2 mv
I found my answer at this link:
http://www.commandlinefu.com/commands/view/8368/bulk-rename-files-with-sed-one-liner
It isn't exactly what I wanted to do, but it works:
ls *.log | sed -e 'p;s/.log/.txt/' | xargs -n2 mv