![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-15 13:14 |
47,813 topics / 349,903 posts / today 1 new / 48,257 members |
| DOS疑难解答 & 问题讨论 (解答室) » Who taught me how to write this? |
| Printable Version 1,830 / 1 |
| Floor1 wlf2r | Posted 2010-12-01 17:53 |
| 新手上路 Posts 11 Credits 15 From 安微 | |
|
There are numbers with 11 digits in a.txt, such as:
12345678910 58156451511 62264545655 23331561615 21215121525 I want to take 10 digits and save them to b.txt. How to write it? Best to tell the meaning of each sentence, thank you, everyone. |
|
| Floor2 peterhuang | Posted 2010-12-02 21:36 |
| 初级用户 Posts 15 Credits 29 | |
|
Replace the last digit with empty. Group, the previous several digits as one group, the last digit as the second group, then use the first group to replace the whole string. [ Last edited by peterhuang on 2010-12-2 at 21:42 ] |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |