Sed unknowncommand: ''' (only for fedora18, other systems have not tried, do not know if there is a problem) solved

Source: Internet
Author: User
Sed appears unknowncommand: ''& amp; #39; (only for fedora18, other systems do not try, do not know if there is a problem) solve the sed learning in the past two days, according to your examples, I found some problems. I don't know if it is my fedora18 system. Enter: echoyo... sed appears unknown command: ''' (only for fedora18, other systems do not try, do not know if there is a problem) to solve the sed learning in the past two days, follow your example to practice, but I found some problems. I don't know if it's my fedora18 system. 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.