replace a string in files, reload files in emacs, change files names in batch,

1) To replace a string oldstring to newstring in some files, do

sed -i ‘s/oldstring/newstring/g’ files

2) to reload files in email, just do

ctrl c + ctrl v

3) to rename files in batch, do

rename ‘s/oldstring/newstring/’ files