<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/bash/tags/cygwin</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 22 May 2013 06:54:01 GMT</pubDate>
<item>
<title>(Bash) Get multi-line environment path listing - studioevoque</title>
<link>http://snipplr.com/view/52928/get-multiline-environment-path-listing/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 03 May 2011 22:15:29 GMT</pubDate>
<guid>http://snipplr.com/view/52928/get-multiline-environment-path-listing/</guid>
</item>
<item>
<title>(Bash) Bash Cygwin Profile - gripnrip</title>
<link>http://snipplr.com/view/34199/bash-cygwin-profile/</link>
<description><![CDATA[ <p>Sample BASH .profile for use in cygwin for windows.</p> ]]></description>
<pubDate>Tue, 11 May 2010 08:46:18 GMT</pubDate>
<guid>http://snipplr.com/view/34199/bash-cygwin-profile/</guid>
</item>
<item>
<title>(Bash) Howto run Tidy from the command line - noah</title>
<link>http://snipplr.com/view/27758/howto-run-tidy-from-the-command-line/</link>
<description><![CDATA[ <p>This shell command will retrieve a Web page and validate the HTML with [Tidy, the HTML linter from the W3](http://tidy.sourceforge.net/).  You can get an **XHTML validation** report right in your shell prompt, just like you'd get from the [Firefox extension](https://addons.mozilla.org/en-US/firefox/addon/249) or the [Web service.](validator.w3.org/).  It's especially helpful when you need to **validate HTML on your intranet, or behind a firewall.**

### **NOTE: Curl does not follow redirects by default!**

By default, Curl retrieves *exactly* the URL you specify. The `-L` option causes Curl to follow redirects just like a Web browser would.

### **NOTE: Tidy produces a lot of output!**


Windows users should make sure their [command prompt screen buffer height is set to 9999](http://www.codinghorror.com/blog/archives/000334.html 'command prompt tips from Coding Horror') so that you don't "lose" any output.


### **Explanation of the command line options**

`curl -L` tells Curl to fo**LL**ow HTTP redirects

`curl -s` **S**uppresses Curl's annoying progress bar

`tidy -e` tells Tidy not to **E**mit the tidied HTML to the console

`tidy -q` tells Tidy to be **Q**uiet, instead of printing extra crap at the bottom of the report

### **Dependencies**

Curl and Tidy are installed via the [Cygwin setup.exe](http://cygwin.com/)

Alternately, Perl hackers could use [lwp-request](http://search.cpan.org/~gaas/libwww-perl-5.808/bin/lwp-request).

### **Doing more**

[Validate HTML with a stricter algorithm,](http://snipplr.com/view/4130/check-linked-pages-for-tidy-validation-errors-on-the-command-line/) using the OpenJade SGML parser.

[Validate linked pages](http://snipplr.com/view/4130/check-linked-pages-for-tidy-validation-errors-on-the-command-line/) with Tidy and lwp-request.</p> ]]></description>
<pubDate>Fri, 05 Feb 2010 12:41:54 GMT</pubDate>
<guid>http://snipplr.com/view/27758/howto-run-tidy-from-the-command-line/</guid>
</item>
<item>
<title>(Bash) Cygwin: recursive copy with ACLs - deepsoul</title>
<link>http://snipplr.com/view/21820/cygwin-recursive-copy-with-acls/</link>
<description><![CDATA[ <p>Cygwin's `cp` discards ACLs (complex windoze permissions).  You have to copy them separately as follows:</p> ]]></description>
<pubDate>Sun, 25 Oct 2009 12:23:47 GMT</pubDate>
<guid>http://snipplr.com/view/21820/cygwin-recursive-copy-with-acls/</guid>
</item>
<item>
<title>(Bash) cygwin, proxy server - sennesaelium</title>
<link>http://snipplr.com/view/20570/cygwin-proxy-server/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 02 Oct 2009 04:05:33 GMT</pubDate>
<guid>http://snipplr.com/view/20570/cygwin-proxy-server/</guid>
</item>
<item>
<title>(Bash) Validate XHTML with Tidy and/or OpenJade, just like the FF extension - noah</title>
<link>http://snipplr.com/view/4970/validate-xhtml-with-tidy-andor-openjade-just-like-the-ff-extension/</link>
<description><![CDATA[ <p>Neither command will give any feedback unless invalid markup is found.</p> ]]></description>
<pubDate>Sun, 10 Feb 2008 02:14:45 GMT</pubDate>
<guid>http://snipplr.com/view/4970/validate-xhtml-with-tidy-andor-openjade-just-like-the-ff-extension/</guid>
</item>
<item>
<title>(Bash) Validate a list of Web pages with Tidy, on the command line - noah</title>
<link>http://snipplr.com/view/4129/validate-a-list-of-web-pages-with-tidy-on-the-command-line/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 13 Nov 2007 22:54:37 GMT</pubDate>
<guid>http://snipplr.com/view/4129/validate-a-list-of-web-pages-with-tidy-on-the-command-line/</guid>
</item>
<item>
<title>(Bash) rsync backup directory - noah</title>
<link>http://snipplr.com/view/2798/rsync-backup-directory/</link>
<description><![CDATA[ <p>The --delete switch causes files that have been deleted from the source directory, to also be deleted from the target directory.</p> ]]></description>
<pubDate>Mon, 04 Jun 2007 07:37:02 GMT</pubDate>
<guid>http://snipplr.com/view/2798/rsync-backup-directory/</guid>
</item>
<item>
<title>(Bash) wget with username and password - noah</title>
<link>http://snipplr.com/view/2687/wget-with-username-and-password/</link>
<description><![CDATA[ <p>This is how to connect to a secure site with wget.  The Cygwin manpage is quite confusing on this issue.</p> ]]></description>
<pubDate>Tue, 22 May 2007 11:08:00 GMT</pubDate>
<guid>http://snipplr.com/view/2687/wget-with-username-and-password/</guid>
</item>
<item>
<title>(Bash) Check cygwin apps for base conflicts - gtcaz</title>
<link>http://snipplr.com/view/2253/check-cygwin-apps-for-base-conflicts/</link>
<description><![CDATA[ <p>From: "Pierre A. Humblet" 
The attached script takes the name of a .exe or .dll,
uses cygcheck to find the dll dependence and checks for conflicts.

This will allow you to check your favorite applications or dlls,
seeing if --enable-auto-image-base works for you.

A "conflict" is when the end of a dll overlaps the start of the next one.
A "guard conflict" includes the extra 0x10000 mentioned by Jason in this thread.
They occur with Windows dlls, not sure if that's a real issue.

I have extended the tool (attached) so that it takes a variable number
of arguments. You can check a program and all the dll's it might ever
load dynamically, or all the dll's in /bin, or whatever. 
cygcheck will search the PATH if necessary.</p> ]]></description>
<pubDate>Thu, 08 Mar 2007 16:42:37 GMT</pubDate>
<guid>http://snipplr.com/view/2253/check-cygwin-apps-for-base-conflicts/</guid>
</item>
</channel>
</rss>