Escaping characters inside a [] pair does not work in sed. To search for a ] you must make it the first character. The other 2 special characters are ^ which loses its special meaning it it is not first and - which loses its special meaning if it is first or last.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.