htmlfind 0.3.1 © 2003-2012 by Turku PET Centre
Program for searching HTML and XHTML code in a specified file or in every
file with extensions *.htm, *.html and *.xhtml that are found under
specified path. Optionally, the (X)HTML code fragment can be changed to
the given text in every place where it is found.
Usage: htmlfind [Options] <Path or HTML file> <Search text>
Options:
-replace <Substitute text>
Search text is replaced by specified text in every instance;
substitute must not contain certain special characters like '&'
-replace-from-file <Filename>
Search text is replaced in every instance by the contents of
the specified ASCII text file, including new line characters;
text length must not exceed 2047 characters
-case[-sensitive]
Search is case-sensitive. By default, upper-and lowercase letters
are considered equal
-h or --help
Print this message and exit
--version or --build
Print software build information and exit
--silent
Program works silently, printing only error and warning messages
--verbose
Program prints more information about what it is doing
Example 1: Command for finding out if and where the specified HTML file
contains HTML code fragment '<a href=':
htmlfind webpage.html "<a href="
Example 2: Command for replacing a web address with another in all HTML
files which can be found in the current directory and below it:
htmlfind . www.old.fi -replace www.new.fi
Keywords: HTML, tools
This program comes with ABSOLUTELY NO WARRANTY. This is free software, and
you are welcome to redistribute it under GNU General Public License.
Last updated 2014-10-22 12:53:49