Sed

来源:互联网 发布:java string的replace 编辑:程序博客网 时间:2024/04/19 02:06
去掉每行开头的数字。
 sed 's/^[0-9]*/s*//g' a.txt
去掉每行开头的两列。
 sed 's/^..//g' a.txt
原创粉丝点击