sed function
all sed function parameters table syntax:
| function Arguments |
function |
| : Label |
Establish the reference position of the instruction jump within the script |
| # |
Add a Comment |
| {} |
Collection commands with the same address parameters |
| ! |
Do not perform function arguments |
| = |
Print the number of data rows |
| A\ |
Add data entered by a consumer |
| B Label |
To jump the executed instruction to: label |
| C\ |
Replacing data with user-entered data |
| D |
Delete data |
| D |
Delete data from the first Neweline letter \ Before the pattern spaces |
| G |
Copy data from Hold space |
| G |
Add information, from hold space to pattern spaces |
| H |
Copy information, from pattern spaces to hold space |
| H |
Add information, from pattern spaces to hold space |
| L |
Print 1 data in ASCII code nonprinting character |
| I\ |
Insert data rows that add consumer input |
| N |
Read the next piece of information |
| N |
Add next data to pattern spaces |
| P |
Print information |
| P |
Print data for the first newline letter \ before the pattern spaces |
| Q |
Jump out of SED editor |
| R |
Read the contents of the document |
| S |
Replace string |
| T label |
Executes a replacement edit instruction first, and if it is replaced with P, the edit instruction jumps to: label to execute |
| W |
Write data to a document |
| X |
Interactive hold space and pattern spaces content |
| y |
conversion (transform) character |