I replace '
with \x27
.
E,g,. I need to delete the following text from a file:
[Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
I use the code:
sed -i 's/\[Warning\] \[MY-013360\] \[Server\] Plugin mysql_native_password reported: \x27\x27mysql_native_password\x27 is deprecated and will be removed in a future release. Please use caching_sha2_password instead\x27//g' <file>