Mathematica中文论坛-非官方

标题: linux sed删除包含特定字符的行 [打印本页]

作者: meatball1982    时间: 2016-2-24 15:53
标题: linux sed删除包含特定字符的行
我的一个rmsd的文件.
开关都是#或是@的注释.我想用其它的东西,画.只要数据.就要把#或是@所在的行都delete掉.

  1. sed -e '/[@,#]/d' rmsd.xvg > rmsd.dat
复制代码
其中,[@,#]是说包含#或是@
d是delete






欢迎光临 Mathematica中文论坛-非官方 (http://ilovemathematica.com/) Powered by Discuz! X3.2