[Top][All Lists]

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

Re: lynx-dev I forgot: how to add an "append" choice to print-menu?

From: David Combs
Subject: Re: lynx-dev I forgot: how to add an "append" choice to print-menu?
Date: Sun, 14 Apr 2002 17:22:16 -0400
User-agent: Mutt/1.3.25i

On Thu, Apr 04, 2002 at 02:12:28PM -0800, Mike Warner wrote:
> On or about 04 Apr, 2002, David Combs
> <address@hidden> 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 :).

(my much delayed reading of email)


(IDEA: could someone just stuff this how-to into
some user-available documentation?  Pretty valuable

Thanks again


; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

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