MAN page from Mandriva 2010 webgrep-2.12-5mdv2010.0.i586.rpm
Section: User Commands (1)
Updated: Nov 1999Index
srcgrep - search html pages for <img ... src=...> or <body ... background=...> and print it in a nice format
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 bya href-tag.
- Prints a little help/usage information.
- print only the link to the path from the <img src=> or <body background=> tag without any quotes.
- Short listing. Do not print the html file name and line number infront.
To tar together images used by a certain web pageyou 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 theweb page.
no known bugs
Guido Socher (guido.sAATTwriteme.com)
- SEE ALSO
This document was created byman2html,using the manual pages.