Return to Snippet

Revision: 17378
at November 5, 2009 07:35 by joe-bbb


Updated Code
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 @

Revision: 17377
at November 3, 2009 10:40 by joe-bbb


Updated Code
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

Revision: 17376
at September 2, 2009 13:32 by joe-bbb


Initial Code
perl -pi -e "s/<h4>Page(\s\d*\s)of(\s\d*)<\/h4>/<p class=\"right\">Page\1of\2<\/p>/g" */object/*.htm

Initial URL

                                

Initial Description

                                

Initial Title
search and replace

Initial Tags
search, replace, perl

Initial Language
Perl