在 windows 下编辑过的文件一般都会被保存为 dos 式, 而 mac os x 和 *nix 类系统一般都是使用 unix 式, 在windows下编辑过的文件在*nix下打开,会被加上^M, 然后造成程序出问题。 所以需要将文件的式从dos转换成unix. 可以使用的工具是dos2unix,使用命令如
在 windows 下编辑过的文件一般都会被保存为 dos 格式, 而 mac os x 和 *nix 类系统一般都是使用 unix 格式,
在windows下编辑过的文件在*nix下打开,会被加上^M, 然后造成程序出问题。
所以需要将文件的格式从dos转换成unix.
可以使用的工具是dos2unix,使用命令如下:
因为文件的数量太大,所以需要批量的来导。
这里就可以使用find 命令。
find . -type f上面这个命令可以找出所以的文件在当前目录下。
然后使用-exec参数 来运行某些命令。
find . -type f -exec dos2unix {} \;
注意dos2unix与{}之间有一个空格。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Zend Studio 13.0.1
Powerful PHP integrated development environment

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),
