If you want to replace any character string with a line break in windows and linux-Linux general technology-Linux programming and kernel information, read the following for details. In windows, you often encounter the problem of converting any symbol into a carriage return. In linux, this problem is easily solved:
\ R press ENTER
\ N line feed
In linux, \ n indicates a new row, and \ r \ n indicates a new row in windows.
Sed's/oldStr/newStr/'oldfile> newfile
Example:
Sed's/,/\ n/'oldfile> newfile
But in windows seems to be able to solve this problem, but the way is always come out, the use of the UltraEdit-32 shortcut Ctrl + H switch to the hexadecimal editing mode can solve this problem. Here is a simple example:
The file now stores the following data. What we want to do now is to convert the comma (,) into a carriage return and line feed. How can this problem be solved?
1, 2, 3
4, 5, 6
Edit it in the UltraEdit-32, switch to the hexadecimal edit mode, as shown below
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.