windows下编辑的sh文件不能在unix下运行解决

如果在windows下编辑的sh文件不能在unix下运行,shell文件中第一行为#!/bin/bash   ,运行后提示“:bad   interpreter   没有那个文件或目录”

需要使用dos2unix转换一下

你可能感兴趣的:(windows,unix,bash)