Redian新闻
>
error of couting total line number in txt file on MSDOS
avatar
error of couting total line number in txt file on MSDOS# JobHunting - 待字闺中
g*2
1
【 以下文字转载自 Military 讨论区 】
发信人: ghost2 (ghost), 信区: Military
标 题: 68歲女攤主答央視街訪 稱希望全部破滅
发信站: BBS 未名空间站 (Mon Oct 22 23:04:57 2012, 美东)
avatar
l*9
2
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
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。