[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] Question about using lynx as a filter...

From: David Woolley
Subject: Re: [Lynx-dev] Question about using lynx as a filter...
Date: Sat, 5 Aug 2006 13:06:45 +0100 (BST)

> verify that I had, indeed, posted the article.  I did but, if my
> query ever appeared, I missed it along with any responses... :(

It has appeared  now.
> I should like to be able to use lynx as a filter to translate HTML
> to plain text.  That is to say, I should like to be able to send a
> HTML to lynx's stdin (standard input for non-Unix types) and have
> plain text (no HTML) appear at lynx's stdout.

On linux you can do this:

cat lynx_bookmarks.html | lynx --force-html /dev/fd/5 -dump 5<&0 | less

I'd be surprised if freebsd doesn't have an equivalent of /dev/fd/

> According to the lynx man page it should be possible to convince
> lynx to accept input via it's stdin unless I'm misunderstanding
> what is being said:

You are misunderstanding.

>     -  If the argument is only '-', then Lynx expects  to
>        receive the arguments from stdin.  This is to allow

The arguments, not the actual HTML file.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]