starlite79
Technical User
Hi,
I have some webpages that I built using a template. The first 38 lines of each html file are the same. I'd like to use Perl to change line 38 to say <div id = "body" class="clearfix"> (It currently is <div id="body">)
I was thinking of trying this:
Is the syntax right for using literal quotes and such?
I have some webpages that I built using a template. The first 38 lines of each html file are the same. I'd like to use Perl to change line 38 to say <div id = "body" class="clearfix"> (It currently is <div id="body">)
I was thinking of trying this:
Code:
perl -ple '$_ = "<div id=\"body"\ class=\"clearfix"\>" if $. == 38; close ARGV if eof' *.html
Is the syntax right for using literal quotes and such?