<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: A Quick guide to Cygwin commands for the deprived of the DOS world</title>
	<atom:link href="http://mikesmithers.wordpress.com/2010/12/30/a-quick-guide-to-cygwin-commands-for-the-deprived-of-the-dos-world/feed/" rel="self" type="application/rss+xml" />
	<link>http://mikesmithers.wordpress.com/2010/12/30/a-quick-guide-to-cygwin-commands-for-the-deprived-of-the-dos-world/</link>
	<description>Oracle - for when it was like that when you got there</description>
	<lastBuildDate>Fri, 24 May 2013 03:52:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Michael Tipton</title>
		<link>http://mikesmithers.wordpress.com/2010/12/30/a-quick-guide-to-cygwin-commands-for-the-deprived-of-the-dos-world/#comment-31522</link>
		<dc:creator><![CDATA[Michael Tipton]]></dc:creator>
		<pubDate>Thu, 07 Feb 2013 19:30:02 +0000</pubDate>
		<guid isPermaLink="false">http://mikesmithers.wordpress.com/?p=747#comment-31522</guid>
		<description><![CDATA[If am trying to find the length of a line using awk.

\unix\awk &#039;{ Print length($0) }&#039; &lt; InputFile

As far as I know, this should work - but it is giving me the CONTENTS rather than the length.

I have tried various ways, and none seem to work.]]></description>
		<content:encoded><![CDATA[<p>If am trying to find the length of a line using awk.</p>
<p>\unix\awk &#8216;{ Print length($0) }&#8217; &lt; InputFile</p>
<p>As far as I know, this should work &#8211; but it is giving me the CONTENTS rather than the length.</p>
<p>I have tried various ways, and none seem to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mikesmithers</title>
		<link>http://mikesmithers.wordpress.com/2010/12/30/a-quick-guide-to-cygwin-commands-for-the-deprived-of-the-dos-world/#comment-22150</link>
		<dc:creator><![CDATA[mikesmithers]]></dc:creator>
		<pubDate>Mon, 03 Sep 2012 12:20:16 +0000</pubDate>
		<guid isPermaLink="false">http://mikesmithers.wordpress.com/?p=747#comment-22150</guid>
		<description><![CDATA[Harini,

in general, the easiest way to create a new file is simply to invoke an editor with a new file name.
For example, to create a file using vi :
[sourcecode language=&quot;bash&quot;]
vi test.txt
[/sourcecode]

In the editor type some text and then save the file.

HTH

Mike]]></description>
		<content:encoded><![CDATA[<p>Harini,</p>
<p>in general, the easiest way to create a new file is simply to invoke an editor with a new file name.<br />
For example, to create a file using vi :</p>
<pre class="brush: bash; title: ; notranslate">
vi test.txt
</pre>
<p>In the editor type some text and then save the file.</p>
<p>HTH</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harini</title>
		<link>http://mikesmithers.wordpress.com/2010/12/30/a-quick-guide-to-cygwin-commands-for-the-deprived-of-the-dos-world/#comment-22072</link>
		<dc:creator><![CDATA[Harini]]></dc:creator>
		<pubDate>Fri, 31 Aug 2012 13:25:06 +0000</pubDate>
		<guid isPermaLink="false">http://mikesmithers.wordpress.com/?p=747#comment-22072</guid>
		<description><![CDATA[This is clear but how to create a File in Linux?]]></description>
		<content:encoded><![CDATA[<p>This is clear but how to create a File in Linux?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://mikesmithers.wordpress.com/2010/12/30/a-quick-guide-to-cygwin-commands-for-the-deprived-of-the-dos-world/#comment-13464</link>
		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Tue, 20 Dec 2011 04:41:29 +0000</pubDate>
		<guid isPermaLink="false">http://mikesmithers.wordpress.com/?p=747#comment-13464</guid>
		<description><![CDATA[Daniel,
I&#039;m not sure that you can do what you&#039;re trying to do...  On the cygwin.com home page, they specifically indicate that cygwin is not a way to run Linux binaries on Windows; rather you need to recompile from source under cygwin instead.  If you do some searching, sometimes you can find somewhere that provides a version of the package you want, already compiled for cygwin.  Also make sure that the package you want isn&#039;t already included in the ports that are accessible inside the cygwin installer.

If you can describe in more detail what you&#039;re trying to do, or what program you&#039;re trying to run, then maybe we can help further.  You might also want to look into using a Linux Live-CD of some distribution, like maybe Ubuntu, though it will require you to reboot.

https://help.ubuntu.com/community/LiveCD

You might also consider using a virtualization package, like virtualbox, though that requires a bit of setup and might have a learning curve, albeit a fairly gentle one.

https://www.virtualbox.org/]]></description>
		<content:encoded><![CDATA[<p>Daniel,<br />
I&#8217;m not sure that you can do what you&#8217;re trying to do&#8230;  On the cygwin.com home page, they specifically indicate that cygwin is not a way to run Linux binaries on Windows; rather you need to recompile from source under cygwin instead.  If you do some searching, sometimes you can find somewhere that provides a version of the package you want, already compiled for cygwin.  Also make sure that the package you want isn&#8217;t already included in the ports that are accessible inside the cygwin installer.</p>
<p>If you can describe in more detail what you&#8217;re trying to do, or what program you&#8217;re trying to run, then maybe we can help further.  You might also want to look into using a Linux Live-CD of some distribution, like maybe Ubuntu, though it will require you to reboot.</p>
<p><a href="https://help.ubuntu.com/community/LiveCD" rel="nofollow">https://help.ubuntu.com/community/LiveCD</a></p>
<p>You might also consider using a virtualization package, like virtualbox, though that requires a bit of setup and might have a learning curve, albeit a fairly gentle one.</p>
<p><a href="https://www.virtualbox.org/" rel="nofollow">https://www.virtualbox.org/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://mikesmithers.wordpress.com/2010/12/30/a-quick-guide-to-cygwin-commands-for-the-deprived-of-the-dos-world/#comment-13396</link>
		<dc:creator><![CDATA[Daniel]]></dc:creator>
		<pubDate>Sun, 18 Dec 2011 08:08:34 +0000</pubDate>
		<guid isPermaLink="false">http://mikesmithers.wordpress.com/?p=747#comment-13396</guid>
		<description><![CDATA[Really Informative!

I am new to cygwin, a simple question need to be ask.

Already downloaded the linux files (.dat, binary files etc.). I have tried the script:

/cygdrive/c/folder/abc.dat

but it&#039;s not working. Kindly anyone recommend me on to run a linux file using cygwin.

Thanks!]]></description>
		<content:encoded><![CDATA[<p>Really Informative!</p>
<p>I am new to cygwin, a simple question need to be ask.</p>
<p>Already downloaded the linux files (.dat, binary files etc.). I have tried the script:</p>
<p>/cygdrive/c/folder/abc.dat</p>
<p>but it&#8217;s not working. Kindly anyone recommend me on to run a linux file using cygwin.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mikesmithers</title>
		<link>http://mikesmithers.wordpress.com/2010/12/30/a-quick-guide-to-cygwin-commands-for-the-deprived-of-the-dos-world/#comment-6627</link>
		<dc:creator><![CDATA[mikesmithers]]></dc:creator>
		<pubDate>Mon, 15 Aug 2011 20:11:36 +0000</pubDate>
		<guid isPermaLink="false">http://mikesmithers.wordpress.com/?p=747#comment-6627</guid>
		<description><![CDATA[David,

not sure if you want to get the client data into a database or whether you want to hold it in files on the os. If it&#039;s the former, it&#039;s probably worth having a look at the bash scripting site I linked to in the post. 
If you want to put it into a database, you can use the here document syntax.
There&#039;s an example of this  &lt;a href=&quot;http://mikesmithers.wordpress.com/2010/06/15/getting-the-quiz-machine-to-pay-out-%E2%80%93-talking-to-your-database-from-a-shell-script/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.

HTH

Mike]]></description>
		<content:encoded><![CDATA[<p>David,</p>
<p>not sure if you want to get the client data into a database or whether you want to hold it in files on the os. If it&#8217;s the former, it&#8217;s probably worth having a look at the bash scripting site I linked to in the post.<br />
If you want to put it into a database, you can use the here document syntax.<br />
There&#8217;s an example of this  <a href="http://mikesmithers.wordpress.com/2010/06/15/getting-the-quiz-machine-to-pay-out-%E2%80%93-talking-to-your-database-from-a-shell-script/" rel="nofollow">here</a>.</p>
<p>HTH</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://mikesmithers.wordpress.com/2010/12/30/a-quick-guide-to-cygwin-commands-for-the-deprived-of-the-dos-world/#comment-5845</link>
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Fri, 12 Aug 2011 03:00:49 +0000</pubDate>
		<guid isPermaLink="false">http://mikesmithers.wordpress.com/?p=747#comment-5845</guid>
		<description><![CDATA[Good Day,

My question is this, 

i want to write a cygwin script in which clients data information (at the point of writing the script the data have not been collected) would be stored.  When the data is therefore collected, i can now open a code for each of my client using the data collected.

Thank you.

David]]></description>
		<content:encoded><![CDATA[<p>Good Day,</p>
<p>My question is this, </p>
<p>i want to write a cygwin script in which clients data information (at the point of writing the script the data have not been collected) would be stored.  When the data is therefore collected, i can now open a code for each of my client using the data collected.</p>
<p>Thank you.</p>
<p>David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mikesmithers</title>
		<link>http://mikesmithers.wordpress.com/2010/12/30/a-quick-guide-to-cygwin-commands-for-the-deprived-of-the-dos-world/#comment-1628</link>
		<dc:creator><![CDATA[mikesmithers]]></dc:creator>
		<pubDate>Sat, 01 Jan 2011 13:52:49 +0000</pubDate>
		<guid isPermaLink="false">http://mikesmithers.wordpress.com/?p=747#comment-1628</guid>
		<description><![CDATA[Thanks again Matt - you certainly seem to have done a fair bit of work in this area.]]></description>
		<content:encoded><![CDATA[<p>Thanks again Matt &#8211; you certainly seem to have done a fair bit of work in this area.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Grancher</title>
		<link>http://mikesmithers.wordpress.com/2010/12/30/a-quick-guide-to-cygwin-commands-for-the-deprived-of-the-dos-world/#comment-1621</link>
		<dc:creator><![CDATA[Eric Grancher]]></dc:creator>
		<pubDate>Thu, 30 Dec 2010 20:52:59 +0000</pubDate>
		<guid isPermaLink="false">http://mikesmithers.wordpress.com/?p=747#comment-1621</guid>
		<description><![CDATA[thank you for your post,

another tool which can be used instead of cmd.exe, both for DOS shell and Cygwin is called Console2. I have switched to it for both DOS and Cygwin shells, it can use tabs and other nice features, it is extremely stable. http://sourceforge.net/projects/console/. I warmly recommend it.

regards,
Eric]]></description>
		<content:encoded><![CDATA[<p>thank you for your post,</p>
<p>another tool which can be used instead of cmd.exe, both for DOS shell and Cygwin is called Console2. I have switched to it for both DOS and Cygwin shells, it can use tabs and other nice features, it is extremely stable. <a href="http://sourceforge.net/projects/console/" rel="nofollow">http://sourceforge.net/projects/console/</a>. I warmly recommend it.</p>
<p>regards,<br />
Eric</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://mikesmithers.wordpress.com/2010/12/30/a-quick-guide-to-cygwin-commands-for-the-deprived-of-the-dos-world/#comment-1618</link>
		<dc:creator><![CDATA[Matt]]></dc:creator>
		<pubDate>Thu, 30 Dec 2010 15:56:12 +0000</pubDate>
		<guid isPermaLink="false">http://mikesmithers.wordpress.com/?p=747#comment-1618</guid>
		<description><![CDATA[I know what you mean about things being busy!  I thought that you&#039;re supposed to get to relax some and enjoy the holidays, but it never seems to work out that way for me.  :)

Let me put in my vote for anyone still laboring to write DOS/NT batch files to switch to writing bash (or other UNIX-like shells) scripts under Cygwin...  Particularly with sed and awk, you can do some really amazing things that are otherwise pretty difficult in DOS.

Anyway, I wanted to add a note about PuTTY...  It&#039;s open source under the MIT license, so there are a ton of both free and commercial products that are based on or incorporate its code.  Another one that I found that incorporates PuTTYcyg&#039;s functionality (via some additional files) is KiTTY.  It looks interesting, though I had difficulties taming it on my system and switched back to PuTTYcyg pretty quickly.

Also, since this post is primarily about how to UNIX-in-DOS, I thought I&#039;d point out some efforts to make this possible other than cygwin...

GnuWin32
http://gnuwin32.sourceforge.net/
Easy to grab individual utilities if you just want to add grep, sed, awk, etc...  I checked out a couple of utilities once but have essentially no experience with it on the whole.  Download/run an installer per utility.


UnxUtils
http://unxutils.sourceforge.net/
Another good package that I used for quite a while.  Seems like there were some goofy issues I ran into and so had to hack around a bit to get everything to behave the way I wanted, and I never did get their sh shell to work to my liking...  Really easy to &#039;install&#039; everything, just unzip and add to your PATH.


UWIN
http://www2.research.att.com/sw/tools/uwin/
I recomend this one the least...  I used it for a while but I don&#039;t remember being particularly happy with how it worked.  If I remember correctly, installation was difficult, threw errors, and generally felt buggy.  Maybe it&#039;s gotten better in the meantime, I haven&#039;t used it in a few years.  That said, at the time it was better than cygwin.  :)


Of the lot, I like cygwin + PuTTYcyg the best.  However, if you just want a toolkit of more powerful command-line utilities, GnuWin32 and UnxUtils will let you pick and choose what to add to your DOS environment without superceding it.

Happy hacking!]]></description>
		<content:encoded><![CDATA[<p>I know what you mean about things being busy!  I thought that you&#8217;re supposed to get to relax some and enjoy the holidays, but it never seems to work out that way for me.  <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Let me put in my vote for anyone still laboring to write DOS/NT batch files to switch to writing bash (or other UNIX-like shells) scripts under Cygwin&#8230;  Particularly with sed and awk, you can do some really amazing things that are otherwise pretty difficult in DOS.</p>
<p>Anyway, I wanted to add a note about PuTTY&#8230;  It&#8217;s open source under the MIT license, so there are a ton of both free and commercial products that are based on or incorporate its code.  Another one that I found that incorporates PuTTYcyg&#8217;s functionality (via some additional files) is KiTTY.  It looks interesting, though I had difficulties taming it on my system and switched back to PuTTYcyg pretty quickly.</p>
<p>Also, since this post is primarily about how to UNIX-in-DOS, I thought I&#8217;d point out some efforts to make this possible other than cygwin&#8230;</p>
<p>GnuWin32<br />
<a href="http://gnuwin32.sourceforge.net/" rel="nofollow">http://gnuwin32.sourceforge.net/</a><br />
Easy to grab individual utilities if you just want to add grep, sed, awk, etc&#8230;  I checked out a couple of utilities once but have essentially no experience with it on the whole.  Download/run an installer per utility.</p>
<p>UnxUtils<br />
<a href="http://unxutils.sourceforge.net/" rel="nofollow">http://unxutils.sourceforge.net/</a><br />
Another good package that I used for quite a while.  Seems like there were some goofy issues I ran into and so had to hack around a bit to get everything to behave the way I wanted, and I never did get their sh shell to work to my liking&#8230;  Really easy to &#8216;install&#8217; everything, just unzip and add to your PATH.</p>
<p>UWIN<br />
<a href="http://www2.research.att.com/sw/tools/uwin/" rel="nofollow">http://www2.research.att.com/sw/tools/uwin/</a><br />
I recomend this one the least&#8230;  I used it for a while but I don&#8217;t remember being particularly happy with how it worked.  If I remember correctly, installation was difficult, threw errors, and generally felt buggy.  Maybe it&#8217;s gotten better in the meantime, I haven&#8217;t used it in a few years.  That said, at the time it was better than cygwin.  <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Of the lot, I like cygwin + PuTTYcyg the best.  However, if you just want a toolkit of more powerful command-line utilities, GnuWin32 and UnxUtils will let you pick and choose what to add to your DOS environment without superceding it.</p>
<p>Happy hacking!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
