A. Costa wrote:
> Is there a text 'grep' for web pages?  If not, that'd
> be good.
> 
> I'm thinking something that acts like this ad hoc function, only better:
> 
>     # usage: URLgrep pattern URL
>     # (ad hoc grep switches return first instance of 'pattern' 
>     # in URL and next line, with numbered lines.)
>     URLgrep() { wget -o /dev/null --output-document=- "$2" | html2text -ascii 
> -nobs | grep -in -A 1 -m 1  "$1" ; }

The fact that this can be implemented as a simple shell pipeline (or
more likely, as many different shell pipelines, depending on exact need)
is a good indication that it's not a good candidate for moreutils.

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to