Why can't I understand this? Thank you for your explanation!
Source: Internet
Author: User
Why can't I understand this? Thank you for your explanation! -- Linux general technology-Linux technology and application information. For details, refer to the following section. [I = s] This post was last edited by gogo11 at, January 14 ,.
1. sed '1,/start/s /#.*//' What does new #. * mean? Is it a wildcard?
2,
1.5 replace and insert line breaks
Replace (echo a; echo x; echo y) | sed '/x $ /{
N
S: x \ n: x:
}'
Insert
(Echo a; echo x; echo y) | sed's: x: X \
:'
I don't know what to replace ......
3. Explain sed-n'/^. \ {87 \} $/p'zz. log, the above statement is to find out that each line has 87 characters, and I can't understand it again, God! Save me!
I am going to take a rough look at sed and awk and learn how to build an smb server. sed and awk are also profound and profound. Both commands have been written in this book!
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