How to find the number of lines in tst file using DOS?
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....,
Thank in Advance.
Ur,
Vinoth
Signature · 2 lines
View this message in context: http://www.nabble.com/How-to-find-the-number-of-lines-in-tst-file-using-DOS--tp17793459p17793459.html Sent from the linux-msdos mailing list archive at Nabble.com.
Quoted 2 lines · On Wed, 11 Jun 2008 23:37:16 -0700 (PDT) Vinoth Rajagopal…
Is there any option to resolve this issue..., Please help me to resolve this issue....,
http://home.att.net/~short.stop/freesoft/unix.htm
Signature · 1 line
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
Quoted 13 lines · Vinoth Rajagopal
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
Quoted 5 lines
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
Signature · 6 lines
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!