/ Published in: Perl
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
perl -pi -e "s/<h4>Page(\s\d*\s)of(\s\d*)<\/h4>/<p class=\"right\">Page\1of\2<\/p>/g" */object/*.htm //also perl -pi -e 's/<li\sid=\"home\"><a\shref=\".*\/index\.html\">Home<\/a><\/li>/<li id=\"home\"><a href=\"\.\.\/\.\.\/\.\.\/\.\.\/">Home<\/a><\/li>/gcx' */*/*/*/index.html //also perl -pi -e 's/,\s:\@total_index\s=>\s\d\s//g' *.haml removes , :@total_index => 5 from =partial('footer-series', :locals => {:@current_index => 1, :@total_index => 5 }) NOTES: escape @