如何在CentOS 6中找出文件的行尾?

时间:2019-01-15 15:06:52

标签: file centos6 line-endings

在CentOS 7中可用的if (RTL) { require('rtl.scss') } else { require('default.scss') } 版本(需要与file一起安装)在调用yum install file时提供有关行结尾!= LF的信息,例如file [file]

但是,CentOS 6上的

DOS batch file, ASCII text, with CRLF line terminators似乎根本没有提供有关行尾的任何信息。所有可用选项似乎都无法提供我正在寻找的信息:

file

我目前正在Docker中使用映像file --help Usage: file [OPTION...] [FILE...] Determine type of FILEs. --help display this help and exit -v, --version output version information and exit -m, --magic-file LIST use LIST as a colon-separated list of magic number files -z, --uncompress try to look inside compressed files -b, --brief do not prepend filenames to output lines -c, --checking-printout print the parsed form of the magic file, use in conjunction with -m to debug a new magic file before installing it -e, --exclude TEST exclude TEST from the list of test to be performed for file. Valid tests are: ascii, apptype, compress, elf, soft, tar, tokens, troff -f, --files-from FILE read the filenames to be examined from FILE -F, --separator STRING use string as separator instead of `:' -i, --mime output MIME type strings (--mime-type and --mime-encoding) --apple output the Apple CREATOR/TYPE --mime-type output the MIME type --mime-encoding output the MIME encoding -k, --keep-going don't stop at the first match -L, --dereference follow symlinks (default) -h, --no-dereference don't follow symlinks -n, --no-buffer do not buffer output -N, --no-pad do not pad output -0, --print0 terminate filenames with ASCII NUL -p, --preserve-date preserve access times on files -r, --raw don't translate unprintable chars to \ooo -s, --special-files treat special (block/char devices) files as ordinary ones -C, --compile compile file specified by -m -d, --debug print debugging messages 将CentOS用于测试目的。

0 个答案:

没有答案