W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2014

Re: Tidy for Windows - Appending output to existing file

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Mon, 24 Feb 2014 14:25:24 +0100
To: Peter Higginbotham <peter@workhouses.org.uk>
Cc: html-tidy@w3.org
Message-ID: <ethmg9haa8a93c0fjome1qc6elsd4oule8@hive.bjoern.hoehrmann.de>
* Peter Higginbotham wrote:
>Not sure if this is bug or feature request or usage advice.
>I'm using tidy for Windows 25 march 2009 with Windows 7.
>How do I get tidy to *append* its output to a file?
>The -f switch always seems to overwrite the specified file.
>Adding something like:
>  >>outfile.txt
>to the tidy command line either only has the
>last file's output in it or is empty.

I am not sure what your last sentence means, but having Tidy print to
`stdout` and using the console's `>>` redirection is the correct and
only method available. Plain

  % tidy input1.html >> multiple-files
  % tidy input2.html >> multiple-files
  ...

works fine as far as I can tell.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Monday, 24 February 2014 13:25:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:59 UTC