---
title: "去除文件中的换行符"
author: "Nonkr"
date: "2014-04-26T13:14:58Z"
tags: []
categories: ["操作系统"]
slug: "untitled"
draft: false
lastmod: "2014-04-26T13:14:58Z"
id: 2055592
url: "https://nonkr.iteye.com/blog/2055592"
---

```
awk '{printf("%s",$0)}' file.txt > file.txt.tmp && mv file.txt.tmp file.txt
```