<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments for Brett's Blog</title>
	<link>http://brett.batie.com</link>
	<description>Thoughts of a Software Developer.</description>
	<pubDate>Fri, 04 Jul 2008 17:13:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>Comment on Count number of lines in a file using DOS by iNFiNiTyLoOp</title>
		<link>http://brett.batie.com/dosshell/count-number-of-lines-in-a-file-using-dos/#comment-129</link>
		<dc:creator>iNFiNiTyLoOp</dc:creator>
		<pubDate>Mon, 16 Jun 2008 06:45:36 +0000</pubDate>
		<guid>http://brett.batie.com/dosshell/count-number-of-lines-in-a-file-using-dos/#comment-129</guid>
		<description>find /c/v "" afile.txt
Is the way I figured out how to do it.</description>
		<content:encoded><![CDATA[<p>find /c/v &#8220;&#8221; afile.txt<br />
Is the way I figured out how to do it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Count number of lines in a file using DOS by Brett</title>
		<link>http://brett.batie.com/dosshell/count-number-of-lines-in-a-file-using-dos/#comment-124</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Wed, 04 Jun 2008 21:17:02 +0000</pubDate>
		<guid>http://brett.batie.com/dosshell/count-number-of-lines-in-a-file-using-dos/#comment-124</guid>
		<description>I think the below searches might help you if I understand the problem correctly.

The below line will find "pattern" anywhere in a line.
findstr /R ".*pattern.*" afile.txt

The below line will find "pattern" after 140 characters.
findstr /r "^(.*){140}pattern.*$" afile.txt</description>
		<content:encoded><![CDATA[<p>I think the below searches might help you if I understand the problem correctly.</p>
<p>The below line will find &#8220;pattern&#8221; anywhere in a line.<br />
findstr /R &#8220;.*pattern.*&#8221; afile.txt</p>
<p>The below line will find &#8220;pattern&#8221; after 140 characters.<br />
findstr /r &#8220;^(.*){140}pattern.*$&#8221; afile.txt</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Count number of lines in a file using DOS by Ken Happich</title>
		<link>http://brett.batie.com/dosshell/count-number-of-lines-in-a-file-using-dos/#comment-123</link>
		<dc:creator>Ken Happich</dc:creator>
		<pubDate>Wed, 04 Jun 2008 07:36:42 +0000</pubDate>
		<guid>http://brett.batie.com/dosshell/count-number-of-lines-in-a-file-using-dos/#comment-123</guid>
		<description>I find this to be a very interesting use of findstr and like your website.  I recently ran into an issue/limitation with findstr that I did not know existed.

I was trying to find a pattern at a particular column location in the file and it might have been at column position aprox 140.   I used the following command

findstr ^...........................................................pattern   *.txt&#62;testOutput.txt

In my case there were serveral more periods (single charter wildcard)  and I got the error message   search string too long.

Is there anyway with  findstr to find a pattern at a unique location in a very long line when the pattern is closer to the end of the line?</description>
		<content:encoded><![CDATA[<p>I find this to be a very interesting use of findstr and like your website.  I recently ran into an issue/limitation with findstr that I did not know existed.</p>
<p>I was trying to find a pattern at a particular column location in the file and it might have been at column position aprox 140.   I used the following command</p>
<p>findstr ^&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..pattern   *.txt&gt;testOutput.txt</p>
<p>In my case there were serveral more periods (single charter wildcard)  and I got the error message   search string too long.</p>
<p>Is there anyway with  findstr to find a pattern at a unique location in a very long line when the pattern is closer to the end of the line?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on touch with DOS commands by masc</title>
		<link>http://brett.batie.com/dosshell/touch-with-dos-commands/#comment-65</link>
		<dc:creator>masc</dc:creator>
		<pubDate>Sun, 17 Feb 2008 23:24:48 +0000</pubDate>
		<guid>http://brett.batie.com/dosshell/touch-with-dos-commands/#comment-65</guid>
		<description>@copy %1 + nul %1 /by

also works, provided copy is new enough to test that it shouldn't overwrite the original file</description>
		<content:encoded><![CDATA[<p>@copy %1 + nul %1 /by</p>
<p>also works, provided copy is new enough to test that it shouldn&#8217;t overwrite the original file</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on touch with DOS commands by masc</title>
		<link>http://brett.batie.com/dosshell/touch-with-dos-commands/#comment-64</link>
		<dc:creator>masc</dc:creator>
		<pubDate>Sun, 17 Feb 2008 22:24:40 +0000</pubDate>
		<guid>http://brett.batie.com/dosshell/touch-with-dos-commands/#comment-64</guid>
		<description>@copy nul: /b +%1 tmp.$$$
@move tmp.$$$ %1

=touch.bat
doesn't change anything in file.org, only time and date</description>
		<content:encoded><![CDATA[<p>@copy nul: /b +%1 tmp.$$$<br />
@move tmp.$$$ %1</p>
<p>=touch.bat<br />
doesn&#8217;t change anything in file.org, only time and date</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on touch with DOS commands by Brett</title>
		<link>http://brett.batie.com/dosshell/touch-with-dos-commands/#comment-57</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Tue, 12 Feb 2008 23:02:12 +0000</pubDate>
		<guid>http://brett.batie.com/dosshell/touch-with-dos-commands/#comment-57</guid>
		<description>You are right! I have only used that command to quickly create an empty file. I have never used it for updating the modification time of an existing file.

I do not know of a way to modify the date modified of a file in dos without using a third party program. Although, if you want the date modified to be updated to the current time you could use one of the follow commands:

1. This copies the file to a temp File and then copies the temp File back over the original. Then deletes the temp File. 
type file.txt &gt; tmpFile.txt &#124; type tmpFile.txt &gt; file.txt &#124; del tmpFile.txt

2. Type: edit file.txt, then hit: alt, f, s, alt, f, x

I really think both solutions are hacks at best. I also wonder what would happen to unicode files or files that have unix style line endings.</description>
		<content:encoded><![CDATA[<p>You are right! I have only used that command to quickly create an empty file. I have never used it for updating the modification time of an existing file.</p>
<p>I do not know of a way to modify the date modified of a file in dos without using a third party program. Although, if you want the date modified to be updated to the current time you could use one of the follow commands:</p>
<p>1. This copies the file to a temp File and then copies the temp File back over the original. Then deletes the temp File.<br />
type file.txt > tmpFile.txt | type tmpFile.txt > file.txt | del tmpFile.txt</p>
<p>2. Type: edit file.txt, then hit: alt, f, s, alt, f, x</p>
<p>I really think both solutions are hacks at best. I also wonder what would happen to unicode files or files that have unix style line endings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on touch with DOS commands by errr</title>
		<link>http://brett.batie.com/dosshell/touch-with-dos-commands/#comment-56</link>
		<dc:creator>errr</dc:creator>
		<pubDate>Tue, 12 Feb 2008 20:46:28 +0000</pubDate>
		<guid>http://brett.batie.com/dosshell/touch-with-dos-commands/#comment-56</guid>
		<description>That seems to clear(!!) the file, rather than touching it</description>
		<content:encoded><![CDATA[<p>That seems to clear(!!) the file, rather than touching it</p>
]]></content:encoded>
	</item>
</channel>
</rss>
