Sed: (only for fedora18)

Source: Internet
Author: User
Sed encountered the unknowncommand: (only for fedora18) problem the past two days to learn sed, according to the example of the exercises, but found some problems, do not know is not my fedora18 system problems. Enter: echoyouareright | sed \'s/right/wrong /... sed has the unknown command (only for fedora18) problem. I learned sed over the past two days and practiced it according to your examples. but I found some problems. I don't know if it is my fedora18 system problem. Enter echo you are right | sed \'s/right/wrong/\ '------------------------------ in the terminal and press enter to report the following error: sed:-e expression #1, char 1: unknown command: ''' the above sed command demonstrates how to easily change "right" to "wrong", but an error is returned. The correct information should be: enter echo you are right | sed's/right/wrong/'------------------------------ on the terminal to display: you are wrong note: the escape character "\" cannot appear in the sed command that replaces the string "\"
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.