public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
From: Mike McCarty <Mike.McCarty@sbcglobal.net>
To: Vinoth Rajagopal <vinoth124@gmail.com>
Cc: linux-msdos@vger.kernel.org
Subject: Re: How to find the number of lines in tst file using DOS?
Date: Thu, 12 Jun 2008 08:47:31 -0500	[thread overview]
Message-ID: <485128F3.9000305@sbcglobal.net> (raw)
In-Reply-To: <17793459.post@talk.nabble.com>

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!

      parent reply	other threads:[~2008-06-12 13:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-12  6:37 How to find the number of lines in tst file using DOS? Vinoth Rajagopal
2008-06-12  6:47 ` Frank Cox
2008-06-12 13:47 ` Mike McCarty [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=485128F3.9000305@sbcglobal.net \
    --to=mike.mccarty@sbcglobal.net \
    --cc=linux-msdos@vger.kernel.org \
    --cc=vinoth124@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox