---
title: "grep and sed"
author: "marlgl"
date: "2014-09-24T18:14:07Z"
tags: []
categories: ["开源软件"]
slug: "grep-and-sed"
draft: false
lastmod: "2014-09-24T18:14:29Z"
id: 2120210
url: "https://marlgl.iteye.com/blog/2120210"
---

```java
grep -n x.log 

sed -n '1000,2000p' x.log > target.log
```