change file to dos format or unix format

#!/bin/bash #author by luweinet@hhstu.edu.cn #Apr 27 2005 #for change file to unix format or change to dos format.: while getopts ud option do case $option in u) cat | sed 's/^M$//' > .unix &;; #M by Ctrl V,Ctrl M d) cat | sed 's/$'''/`echo \\r`/''> .dos &;; *) "echo Usage:./cinput filename {unix | dos}" esac done

文章整理:西部数码--专业提供域名注册虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!