---
title: "Shell多行文字合并为一行"
author: "crane.ding"
date: "2014-12-31T21:55:29Z"
tags: []
categories: ["操作系统"]
slug: "shell"
draft: false
lastmod: "2014-12-31T21:55:29Z"
id: 2171619
url: "https://crane-ding.iteye.com/blog/2171619"
---

```shell

awk '{printf (/#/&&NR>1)?"\n"$0:$0}'

```