[原] 去除csdn的blog上复制下来代码的行号
Posted by bianbian on 2009-02-22 11:08
001 line 1
002 line 2
==>
line 1
line 2
不好意思,shell不太熟悉,只好用个php。。。欢迎补充其他语言的一行代码:
- php -r '$a=file("src.cpp"); for($i=0;$i<count($a);$i++)$a[$i]=substr($a[$i],4); echo join($a,"");' > src.cpp
遵守创作共用协议,转载请链接形式注明来自http://bianbian.org 做人要厚道
January 22nd, 2010 at 08:05:45
碰到行号我都换IE复制