---
title: "常用技巧"
author: "zs0723"
date: "2009-05-27T17:05:05Z"
tags: []
slug: "untitled"
draft: false
lastmod: "2009-05-27T17:05:05Z"
id: 397419
url: "https://zs0723.iteye.com/blog/397419"
---

1 删除文件中的某一行

 

    sed -e '/pattern/d' file &gt; tmp\_file