请问sed如何对匹配到的文本编号?

View: New views
1 Messages — Rating Filter:   Alert me  

请问sed如何对匹配到的文本编号?

by mjxian-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

用sed对整个文件进行全局的匹配,第一个匹配到的编号为1,……
sed是否有内建的变量一类可以简洁的完成它?


--
To UNSUBSCRIBE, email to debian-chinese-gb-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...

LightInTheBox - Buy quality products at wholesale price!