Linux six week second lesson (March 13) Notes

Source: Internet
Author: User
Six week second class (March 13)
9.4sed (UP)
9.5sed (bottom)

9.4sed (UP)

Match to continuous print two times

Don't want to print out irrelevant, add-N.

Need to take off the signifier

Do not add the signifier,-N after adding R

Match two times O

Print out the use of a file 2–5 line

Print out the use of all the lines of a file

Print a line that contains a character

9.5sed (bottom)
Set is small in size

Edit File

Join a row

Six months of the journal, deleted before five month, only stay the last one months. Based on time, use grep to check the number of rows. Use VIM to open the file, very memory-intensive, with set can be deleted directly.



Delete a row with user

Replace function

Plus r to take effect. The substitution can use regular expressions.

Linux six week second lesson (March 13) Notes

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.