Sed tool is very powerful, powerful to the manual of the command can produce a book with more than 1000 pages. However, Want Want only said one function that I often use, [replace], there are mainly the following ways to use: 1, replace and output (do not modify the source file): sed 's/dog/cat/g' file ##dog The content to be replaced, the content replaced by cat 2, directly replaced with the source file after backup: sed -i.bak 's/dog/cat/g' file3, replace the nth line to the mth line: sed 'n, ms/Dog/cat/g' file ##n, m is the number 4, the content between the replacement content xxx and ***: sed '/A/, /B/s/dog/cat/g' file ##换A Content between and B, replace multiple pieces at a time: sed -e 's/dog1/cat1/g' -e 's/dog2/cat2/g' file
Requirement scenario Using the proxy server HAProxy to load balance Mysql is a common solution. To
Currently, a very serious Bash vulnerability has been exposed on the Internet. It
We have been doing a task in the usual way until we know there is a better way to handle it. As a fo
When compiling the program today, the error: storage class specified for parameter is not found in
Modify the output of snort's socket mode
How to adjust the SWAP space size of Linux system tutorial
Talking about the learning direction and method of Linux system
Free to use Windows documentation on the Linux desktop
How to install Go language in Linux
Linux system /etc/fstab loss, mount LVM repair
Mounting of text editors and external storage devices in Linux system
PDF helper under Linux system LinuxPDFeditor
Neighbor subsystem of linux protocol stack (garbage collection seven)
Shell awk real-time monitoring network card traffic script (common application 2)
Window10 system transparent interface shutdown method detailed
The system partition has no drive letter. You can still access the file.
Widgets help you achieve Win8 translucent effect
How to prevent ARP spoofing in Vista
Win10 RS2 14931 prohibits manual search for updates?
How to solve the problem of dialing 651 under Windows 8.1
Instantly let you become a master Ctrl+Esc play the start menu
Win7 system unknown security features
How to disable the disk protection function in the Win7 system