srcgrep(1) Search utilities srcgrep(1)
Nov 1999
NAME
srcgrep - search html pages for <img ... src=...> or <body ...
background=...> and print it in a nice format
SYNOPSIS
srcgrep [-hps] html-files
DESCRIPTION
srcgrep is a utility that searches html files for the img/src or
body/background tags. This is very useful to quickly check for the
path and type of included images. Please note that srcgrep looks only
at the img or body tag and can thus not find any images referenced by
a href-tag.
OPTIONS
-h Prints a little help/usage information.
-p print only the link to the path from the <img src=> or <body
background=> tag without any quotes.
-s Short listing. Do not print the html file name and line number
infront.
To tar together images used by a certain web page you can use:
tar cvf img.tar `srcgrep -sp page.html | sort | uniq | egrep -v '://'`
Note: This will work only if relative links are used in the web page.
BUGS
no known bugs
AUTHOR
Guido Socher (guido.s@writeme.com)
SEE ALSO
lshtmlref(), blnkcheck(1), taggrep(1), hrefgrep(1)
- 1 - Formatted: December 16, 2025