replacing text by unix shell?
Posted: Tue Jul 04, 2006 9:37 pm
Good day, *nix gurus!
I have a file named functions.php, its located in many folder with different names under /home/site/ directory
functions.php has this string:
$arr[$i]=($i==$page) ? "<font color=red>[$k]</font>" : "<a href=page_$i.html>[$k]</a>";
I want to replace this string to:
$arr[$i]=($i==$page) ? "<font color=red size=1>[$k]</font>" : "<font size=1><a href=page_$i.html>[$k]</a></font>";
how do i do that in shell?
I have a file named functions.php, its located in many folder with different names under /home/site/ directory
functions.php has this string:
$arr[$i]=($i==$page) ? "<font color=red>[$k]</font>" : "<a href=page_$i.html>[$k]</a>";
I want to replace this string to:
$arr[$i]=($i==$page) ? "<font color=red size=1>[$k]</font>" : "<font size=1><a href=page_$i.html>[$k]</a></font>";
how do i do that in shell?