To replace string in a single file you can use sed command:
sed '/s/old/new/g' file.txt > file2.txt
and then mv file2.txt file.txt
your shell also may have -i option, which allows to make changes inside the file:
sed -i '/s/старое/новое/g' file.txt
To perform replace in many files (all files of current directory) we have to write a little shell script. Let’s name it strreplace.sh
for FILE in $@; do
sed -i ’s/old/new/g’ $FILE
done
Now run strreplace.sh with parameter - list of files
For all files of current directory this will be: strreplace.sh *
Finally it happened, after 2 unsuccesseful takes, the 3rd take of Google interview went OK.
Dylan, Engineer at Google called me yesterday evening and we had 45 minutes conversation. First he asked me to describe my usual working day.
After I was aksed about 2 different situations, we were discussing them. I told what will I do on server side and client side. So the situations were: double click on form button, especially if it’s the form of ordering something using credit card. Another one - checking if there is already such username in base by registration, using iframe instead of JSON.
Dylan also asked my about JavaScript closures. But unfortunately I had no idea about that, but read some information after and it’s really interesting, I will write about this soon
After that I had a chance to give my questions.
PS. my Ubuntu installation went not well, had problems with GRUB, will try again soon 
I really hate when a computer pretends to be smarter than me, that's why I turned off visual editor in Wordpress and now I can control everything and that's great. I don't have to battle anymore with changes editor made to my code! In this way I'm like Will Smith character in 'I, Robot' movie, believe every developer is on the same part.
Other thing is that I've installed nice plugin for code and now my code will be nice-looking like:
PHP
PHP:
-
<?
-
$str="Hello World";
-
-
?>
HTML
HTML:
-
-
-
-
Hello World!
-
</td>
-
</tr>
-
</table>
JavaScript
JAVASCRIPT:
-
<script type="text/javascript">
-
function sayit(str) {
-
alert(str);
-
}
-
-
var mystr='Hello world!';
-
sayit(mystr);
-
</script>
Also, Today I've got the free Ubuntu CD 
Btw, my Google interview is rescheduled to Friday.