From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike McCarty Subject: Re: How to find the number of lines in tst file using DOS? Date: Thu, 12 Jun 2008 08:47:31 -0500 Message-ID: <485128F3.9000305@sbcglobal.net> References: <17793459.post@talk.nabble.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <17793459.post@talk.nabble.com> Sender: linux-msdos-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Vinoth Rajagopal Cc: linux-msdos@vger.kernel.org Vinoth Rajagopal wrote: > Hi Everyone, > > In batch code, is it possible to count the number of files from the text > file > > For eg., > Text file "Src.txt" contains the following text.... > uuuuu > vvvvvv > xxxxxx > yyyyyy > zzzzzz > > I need to find the number of lines available in "Src.Txt" and also i need to > print(echo) the 3rd line. > > Is there any option to resolve this issue..., Please help me to resolve this > issue...., Supposing that you don't want to use the ports of GNU, suggested in the other reply, you need to write a little program in some other language. The MSDOS batch file interpreter is really not up to this job. Mike -- p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);} Oppose globalization and One World Governments like the UN. This message made from 100% recycled bits. You have found the bank of Larn. I can explain it for you, but I can't understand it for you. I speak only for myself, and I am unanimous in that!