On or about 04 Apr, 2002, David Combs
<[EMAIL PROTECTED]> wrote:

> I want to add an "append to file" choice to that print-menu.
> 
> Can someone give me a "cookbook" solution?

Define the options in lynx.cfg

PRINTER appends rendered page, DOWNLOADER appends source.

PRINTER:append to a file:cat %s >> %s:TRUE
DOWNLOADER:append to a file:cat %s >> %s:TRUE

The first "%s" is the source (lynx takes care of this one), the
second "%s" prompts for a file name to append to.  ">>"
redirection appends if the target file exists, otherwise writes a
new file.  A single ">" redirection would overwrite always.

Minimal testing done, so try it out on non-critical files to make
sure it works for you.

NOTE: This is a *nix-ish solution (cygwin in my case); for win32,
etc, you'll have to seek elsewhere :).

-- 
Michael Warner       | Procrastinate now.
<[EMAIL PROTECTED]> |

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to [EMAIL PROTECTED]

Reply via email to