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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.