in message <[EMAIL PROTECTED]>,
wrote Gary Kline thusly...
>
> I've got several chapters with footnptes with that double-S
> "section" character.  In HTML, the code is &sect;   The thing I
> want to do is use perl to s/ \xa7/&sect;/g.....but don't know the
> keycombo to /find or designate tthe hex a7 byte.  Can anybody clue
> me in?

Use '-i' option for in place editing, '-p' to print the results to
the file, '-e' to specify the code to run ...

  perl -pi -e 's/\xa7/&sect;/g' file-1 file-2 file-3


... if you have quite many files use 'find' to find the HTML files,
say in directory named '/html/files' ...

  find /html/files -type f -name '*.html' -print0 \
  | xargs -0 perl -pi -e 's/\xa7/&sect;/g'


  - Parv

-- 

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to