国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > Unix > 正文

dos2unix用法

2024-06-28 13:26:26
字體:
來源:轉載
供稿:網友
dos2unix用法

windows下編寫的腳本,上傳到linux上執行,有時會出現莫名其妙的結果,也是折騰了半天才找出原因,windows和linux有些編碼不同,經dos2unix處理后,結果一切正常man dos2unix結果如下,英文不難理解,一看就基本懂,所以也懶得翻譯了NAME dos2unix - DOS/MAC to UNIX text file format converterSYNOPSYS dos2unix [options] [-c convmode] [-o file ...] [-n infile outfile ...] Options: [-hkqV] [--help] [--keepdate] [--quiet] [--version]DESCRipTION This manual page documents dos2unix, the PRogram that converts plain text files in DOS/MAC format to UNIX format.OPTIONS The following options are available: -h --help Print online help. -k --keepdate Keep the date stamp of output file same as input file. -q --quiet Quiet mode. Suppress all warning and messages. -V --version Prints version information. -c --convmode convmode Sets conversion mode. Where convmode is one of: ASCII, 7bit, ISO, Mac with ASCII being the default. Simulates dos2unix under SunOS. -o --oldfile file ... Old file mode. Convert the file and write output to it. The program default to run in this mode. Wildcard names may be used. -n --newfile infile outfile ... New file mode. Convert the infile and write output to outfile. File names must be given in pairs and wildcard names should NOT be used or you WILL lose your files.EXAMPLES Get input from stdin and write output to stdout. dos2unix Convert and replace a.txt. Convert and replace b.txt. dos2unix a.txt b.txt dos2unix -o a.txt b.txt Convert and replace a.txt in ASCII conversion mode. dos2unix a.txt -c iso b.txt Convert and replace b.txt in ISO conversion mode. dos2unix -c ascii a.txt -c iso b.txt Convert c.txt from Mac to Unix ascii format. dos2unix -c mac c.txt b.txt Convert and replace a.txt while keeping original date stamp. dos2unix -k a.txt dos2unix -k -o a.txt Convert a.txt and write to e.txt. dos2unix -n a.txt e.txt Convert a.txt and write to e.txt, keep date stamp of e.txt same as a.txt. dos2unix -k -n a.txt e.txt Convert and replace a.txt. Convert b.txt and write to e.txt. dos2unix a.txt -n b.txt e.txt dos2unix -o a.txt -n b.txt e.txt Convert c.txt and write to e.txt. Convert and replace a.txt. Convert and replace b.txt. Convert d.txt and write to f.txt. dos2unix -n c.txt e.txt -o a.txt b.txt -n d.txt f.txt


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 湟中县| 长宁县| 贵港市| 华蓥市| 板桥市| 句容市| 城步| 宝鸡市| 红原县| 通榆县| 威信县| 静海县| 务川| 乌鲁木齐市| 和平区| 甘肃省| 鹤峰县| 漳州市| 嵊泗县| 仙桃市| 乐亭县| 教育| 梁平县| 牙克石市| 榕江县| 无极县| 桐乡市| 杂多县| 通城县| 仪陇县| 隆尧县| 长海县| 邹城市| 滕州市| 鱼台县| 长宁区| 自贡市| 中西区| 屏东市| 乐平市| 怀化市|