Early knowledge of sed and gawk in Linux Command Line and shell script ProgrammingThe sed editor of the Text Processing editor can process data in a data stream based on commands that are input to the command line or stored in the Command text file.
For example, to change the zhangsan in all the files under the directory/modules to Lisi, do the following:
Sed-I "s/zhangsan/Lisi/g" 'grep zhangsan-RL/Les'
Explanations:
-I indicates inplace edit, modifying files in place-R indicates searching for
SedSED is a powerful text-processing toolBe able to use regular matching. Insert and delete changes to textWhen SED is processed, one line is processed at a time, and each time the current processing is stored in a temporary buffer. After processing
SedSED is a powerful text-processing toolYou can use regular matching, insert and delete text, and so on.When SED is processed, one row at a time, each time the current processing is stored in a temporary buffer, the output buffer content to the
VI command usage (search and replace)
09:54:14 | category:OS (operating system) | Tag:| Font sizeSubscription
ESC: switch between command mode and insert mode
I. VI search:After you open a file using vi, how can you find the keyword that you want
Linux Command Line editing common shortcut keys (practical, General), linux Command Line
This article describes common shortcut keys for Linux Command Line editing.
Linux Command Line editing shortcut:
History display command history list
← (Ctrl +
Sed
SED is a powerful text-processing tool
You can use a regular match to insert the text to delete changes, and so on
When SED is processed, one line is processed at a time, each time the current processing is stored in a temporary buffer, the
Windows Command Line find and replace-made easy with fart.exe here is a great little application that does a find and replace on a particle file, file type or file contents, then replaces it with a string of your choice. it can look in sub
command-line editing:Cursor Jump:CTRL + A: Skip to the beginning of the commandCtrl+e: Jump to the end of the command lineCtrl+u: Delete the cursor to the beginning of the command lineCTRL+K: Delete the cursor to the end of the command lineCtrl+l:
Read Catalogue
Objective
Using the Tmux MUX Console window
Move the cursor quickly in the command line
Quickly delete text from the command line
Quick View and search history commands
Quick Reference and Retouch history
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.