⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 unix2dos

📁 AT91所有开发板的资料 AT91所有开发板的资料
💻
字号:
#! /bin/sh ## unix2dos - crude use of zip/unzip to convert CR/LF to LF#usage () {echo "  Usage: unix2dos <filename> .. <filename>";echo "  Converts a number of files from Unix (LF) to DOS (CR/LF)"exit 1 }convert () {        echo "converting $FILE from Unix to DOS"	zip -l /tmp/$$.zip $FILE > /dev/null	unzip -o /tmp/$$.zip > /dev/null	rm -f /tmp/$$.zip}# check argcif [ $# = 0 ]then	usagefi# do they need help?case "$1" in	"-h" | "--help" | "-help") usage	exit 1esac# check to see if there is a source fileFILE=$1if [ ! -f $FILE ] then	echo "unix2dos: can't find $FILE" >&2	exit 1fi# convert the filesfor i in $*do    FILE=$i    convertdoneexit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -