Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Count lines in dos
Name: fadi yousef Date: July 3, 2003 at 13:01:42 Pacific OS: DOS V.5 CPU/Ram: 2 G
Comment:
How can i get the line count in a text file in DOS (using a batch file) ?
Name: Secret_Doom Date: July 3, 2003 at 14:07:24 Pacific
Reply:
The following will output the number of lines from filename.ext:
FC /n filename.ext nul |FIND /c ":"
If it's slow, try this other similar way:
FC /n filename.ext nul > %temp%.\$ FIND /c ":" %temp%.\$ del %temp%.\$
-- Leonardo Pignataro - Secret_Doom --
secret_doom@hotmail.com www.batch.hpg.com.br
0
Response Number 3
Name: Secret_Doom Date: July 3, 2003 at 14:09:49 Pacific
Reply:
By the way, I don't know since which version of DOS the commands FC.exe and FIND.exe were avaliable, I'm not sure they're present on DOS 5.0, but I think they are.
-- Leonardo Pignataro - Secret_Doom --
secret_doom@hotmail.com www.batch.hpg.com.br
0
Response Number 4
Name: tjoad010 Date: July 23, 2003 at 04:02:58 Pacific
Summary: Hi every body I need to count the number of line in a file. My file is like this: |tetrte|ezrzer|||||erez| |tetrte|ezrzer|||||erez| |tetrte|ezrzer|||||erez| I found something: find /C "|" filename I a...
Summary: my problem is running the old game x-wing. i had to create a boot disk in order to play it. i have a boot disk w/ mouse support and one w/out mouse support. now my problem is that the game doesn't rea...