---
title: "shell脚本 替换widows中的不合法字符"
author: "button"
date: "2014-03-11T09:50:46Z"
tags: []
categories: ["操作系统"]
slug: "shell-widows"
draft: false
lastmod: "2014-03-11T09:50:46Z"
id: 2029256
url: "https://jic.iteye.com/blog/2029256"
---

##替换01.sh  02.sh俩个文件中不合法字符

 

for i in \*.sh ;

do

sed -i 's/\\r//g' $i;

done