标题:
给txt文档加行号
[打印本页]
作者:
26933062
时间:
2007-5-16 04:04
标题:
给txt文档加行号
请问怎样给a.txt的每一行加上行号?
作者:
bjsh
时间:
2007-5-16 08:53
findstr /n .* test.txt
再重定向
作者:
ttyp
时间:
2007-5-16 08:54
@echo off
findstr /n ".*" a.txt>b.txt
作者:
minmin888
时间:
2007-5-16 10:29
sed "=" a.txt>b.txt
作者:
26933062
时间:
2007-5-16 13:01
谢了!
.* 原来这样 呵呵
作者:
teste
时间:
2007-6-28 00:03
学习了。多谢
作者:
bjsh
时间:
2007-6-28 00:36
我也凑个热闹;
gawk '{print NR,$0}' test.txt
作者:
lxmxn
时间:
2007-6-28 01:45
grep -n .* urfile
欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/)
Powered by Discuz! 2.5