`

syntax error: unexpected end of file

阅读更多

dos文件转换成unix文件格式
    dos
格式文件传输到unix系统时,会在每行的结尾多一个^M,当然也有可能看不到,但是在vi的时候,会在下面显示此文件的格式,比如 "dos.txt" [dos] 120L, 2532C 字样,表示是一个[dos]格式文件,如果是MAC系统的,会显示[MAC],因为文件格式的原因有时会导致我们的unix程序,或者shell程序出现错误,那么需要把这些dos文件格式转换成unix格式,方法是
     vi   dos.txt         
     :set fileformat=unix
     :w                  
    
这样文件就转换成unix格式文件了,一般在windows机器上编写好了文件传到unix下就可能会出现这样的情况,而一般我们使用ftp命令,常常会加上bin参数表示二进制传输,可是试一下加asc参数,可能传到unix下就是unix格式

分享到:
评论

相关推荐

    CentOS7运行.sh脚本提示syntax error: unexpected end of file的解决方法

    CentOS 7运行.sh脚本提示syntax error: unexpected end of file。脚本是通过本地电脑的notepad++编辑之后用ftp上传到CentOS 7服务器上的。 错误原因: shell脚本在本地电脑编辑的,格式是dos(可以用vi编辑该shell...

    PHP错误Parse error: syntax error, unexpected end of file in test.php on line 12解决方法

    今天在写PHP程序的时候总是出现这样的错误:Parse error: syntax error, unexpected end of file in *.php on line *,然后我就根据提示,找到那个文件,然后错误中总是提示最后一行出错,我找到最后一行发现是<...

    php异常:Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE eval()'d code error

    PHP会出现eval()'d code error 错误提示的原因一般都是因为模板错误,原因有以下几种情况

    解决winpcap在vc6编译的错误

    winpcap 4.1.1在vc6下编译会出现以下错误,原因是vc6.0并不完美支持c++99标准,在64位cpu中...' before type 'unsigned int' c:\wpdpack\include\pcap-stdinc.h(79) : fatal error C1004: unexpected end of file found

    php语法检查的方法总结

    我们可以使用lint检查 用lint静态检查。 静态是一种只检查语法描述方法而不执行程序的方法。 此时使用lint命令。 ※php_check_syntax这个语法...PHP Parse error: syntax error, unexpected end of file, expecting ','

    C++出错提示英汉对照表

    Unexpected end of file in conditional started on line xxx ----从xxx 开始的条件语句尚未结束文件不能结束 Unknown assemble instruction ----------------未知的汇编结构 houjiuming Unknown option ---------...

    BURNINTEST--硬件检测工具

    Here is a summary of all changes that have been made in each version of BurnInTest. Release 5.3 build 1035 revision 4 WIN32 release 10 November 2008 - Lenovo China specific build. Lenovo system ...

    acpi控制笔记本风扇转速

    fields at the end of some of the subtables. The disassembler now emits a comment if a buffer appears to be a ResourceTemplate, but cannot be disassembled as such because the EndTag does not appear at...

    CE中文版-启点CE过NP中文.exe

    Fixed issue where memory blocks would get cut of before the page end Fixed some memory leaks Fixed some graphical issues in the addresslist Fixed rightclick on r8 and r9 in memoryview Fixed ...

    一个win32下的ARM开源编译器

    fasmarm supports the original pre-UAL syntax and the newer UAL syntax. These two syntaxes only affect THUMB encodings. UAL stands for: Universal Assembly Language. pre-UAL syntax is selected with ...

    8-07-14_MegaCLI for linux_windows

    SCGCQ00576028 (DFCT) - No description for "setdelay" with help file of adppr. Installation Commands: ======================= Run MegaCli from the Command Prompt. Use -h option to see help menu. ...

    Sakemail

    :)26/3/981.6.1- Added a FUNCFileName private variable to manage the complete path of the attached file. I receive problems reports with this, it work now ?.- Reduced the line sleep to 30 (tell me if ...

    Bochs - The cross platform IA-32 (x86) emulator

    specify an alternative redolog file of USB MSD disk image modes) - hard drive - new disk image mode 'vvfat' - ported the read-only part of Qemu's 'virtual VFAT' block driver - additions: ...

Global site tag (gtag.js) - Google Analytics