Search and replace from shell using perl

Perform a search and replace within files using perl and regular expressions. To do this you will need perl installed windows or linux

user$ perl -pi -w -e'/seach_string/replase_string/g;' file pattern
-pi assume loop like -n but print line also, like sed
-w enable many useful warnings (RECOMMENDED)
-e one line of program (several -e's allowed, omit programfile)