Use ultraedit to implement batch conversion from UNIX files to DoS Files

Source: Internet
Author: User
Tags ultraedit

Recently, when I used the CT ++ software, I encountered the following problem: the software was developed under FreeBSD. Although the C language source program is provided, the program compilation error occurs under Visual Studio 2003. The check reason is mainly because the source program is in UNIX format, and the carriage return character for each line is represented by a 0x0a character, while the carriage return character for each line in Windows/DOS is represented by a 0x0d0a character, this program is annotated in Russian, which affects the processing of vs2003 and treats a large number of program codes as annotations. Therefore, compilation fails. To pass the compilation, you must first convert the UNIX text format to the DOS format. The File menu of ultraedit provides the ability to convert a single file, but only one file can be converted at a time, which is troublesome. After some research, we finally found a method for batch conversion. Select the search | search in files menu in ue, and fill in ^ N in the find box, which indicates the line break symbol in the Unix File ), enter ^ P in Replace with, as shown in. This enables batch replacement.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.