全文 找到匹配的行 并删除如题:如 a.log 文件 记录了一些用户的记录 现在要求找到A用户所有的访问日志 并删除 !该怎么进行 谢谢[解决办法]sed /pattern/d a.log > a.log_new[解决办法]vi或vim的话:g/pattern/d