for f in *.txt; do mv ./"$f" "$f.newname"; done
and the other direction:
for f in *.mine; do mv $f `echo $f | sed 's/\(.*\).newname/\1/'`; done
From this post.
Code, computers, and other nonsense. All powered by iguanas, of course.
for f in *.txt; do mv ./"$f" "$f.newname"; done
for f in *.mine; do mv $f `echo $f | sed 's/\(.*\).newname/\1/'`; done
Window->Preferences->General->Editors->Text Editors->Annotations->(C/C++) Occurrences