由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Windows版 - error of couting total line number in txt file on MSDOS (转载)
相关主题
电脑蓝屏求助W7 启动 problem
用IE7.0, new tab选项没了Suggestion on WIN2K Pro partition PLS!
Re: How to make setup disks?Re: How to delete the Bootmagic?
Re: dos下面如何进入名字含有空格的目录?3x!win2000使用全攻略
关于sp2的不同版本 (From SMTH NewSoftware) Windows98安装过程中的故障解决 》(zhuan)
Files are corrupted by Symantec image加速DOS下WINDOWS2000的安装
有人用过IE7吗?DOS与WINDOS
请问开机一段时间后XP变得巨慢是怎么回事?Re: install w98se after w2k, not win2k gone
相关话题的讨论汇总
话题: number话题: file话题: couting话题: msdos话题: ms
进入Windows版参与讨论
1 (共1页)
l******9
发帖数: 579
1
【 以下文字转载自 JobHunting 讨论区 】
发信人: light009 (light009), 信区: JobHunting
标 题: error of couting total line number in txt file on MSDOS
发信站: BBS 未名空间站 (Thu Nov 20 18:34:45 2014, 美东)
I would like to find the total line number of a text file ( > 60 GB) in MS-
DOS.
I used:
findstr /R /N "^" file.txt | find /C ":"
But, the returned result is a negative number.
It is overflow ?
The file have not more than 5 billion lines.
For an integer (4 Bytes), its max range is From −2,147,483,648 to 2,
147,483,647.
So, I need to design a script to count the number by dividing the result
with 1000 ?
If yes, please help me with how to design the script in MS DOS.
Thanks
1 (共1页)
进入Windows版参与讨论
相关主题
Re: install w98se after w2k, not win2k gone关于sp2的不同版本 (From SMTH NewSoftware)
Re: 如何在DOS/Windows里连接两个文件?Files are corrupted by Symantec image
Re: how to access chiense directory in english windows有人用过IE7吗?
Re: 垃圾箱总是无法清空请问开机一段时间后XP变得巨慢是怎么回事?
电脑蓝屏求助W7 启动 problem
用IE7.0, new tab选项没了Suggestion on WIN2K Pro partition PLS!
Re: How to make setup disks?Re: How to delete the Bootmagic?
Re: dos下面如何进入名字含有空格的目录?3x!win2000使用全攻略
相关话题的讨论汇总
话题: number话题: file话题: couting话题: msdos话题: ms