After upgrading 'guestfish', the escape character when using sed no longer works as expected

Solution Verified - Updated -

Issue

  • I use sed to modify a file. If i use an an escape character ('\') to specify a dot ('.'), it does not work as expected:
><fs> command "sed -i 's/0\.2/0\.3/g' /root/tmp.txt"
guestfish: invalid escape sequence in string (starting at offset 11)

Environment

  • Red Hat Enterprise Linux 6.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content