<?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"
	>
<channel>
	<title>Comments on: Count number of lines in a file using DOS</title>
	<atom:link href="http://brett.batie.com/dosshell/count-number-of-lines-in-a-file-using-dos/feed/" rel="self" type="application/rss+xml" />
	<link>http://brett.batie.com/dosshell/count-number-of-lines-in-a-file-using-dos/</link>
	<description>Thoughts of a Software Developer.</description>
	<pubDate>Wed, 07 Jan 2009 02:02:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>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 isPermaLink="false">http://brett.batie.com/?p=25#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>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 isPermaLink="false">http://brett.batie.com/?p=25#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>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 isPermaLink="false">http://brett.batie.com/?p=25#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>
</channel>
</rss>
