In linux, I will use sed-Linux Enterprise Application-Linux server application information. The following is a detailed description. Author: Chen shake
Linux is actually the process of viewing and modifying the configuration file.
When I first started to use linux, I still used vi to edit files. However, if the same process is repeated multiple times, you have to find a way to simplify your process. Sed is definitely a good command or tool. You can directly edit it without opening the file with vi.
Sed is widely used on the Internet and I don't know much about it. Now we will modify it in a simple example. But this is enough. I only need some simple functions.
1: Comment out a row
This often happens. Comment out a line in the configuration file. It does not work.
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