Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: Scrutinizer
989
Posted By Scrutinizer
Strange, and this produces the same output? sed...
Strange, and this produces the same output?
sed "s/'/\\\'/g" sri1.txt
-and this-
sed 's/'\''/\\&./g' sri1.txt
989
Posted By Scrutinizer
Almost. The quotes and double quotes need not be...
Almost. The quotes and double quotes need not be escaped (by a backslash), the backslash needs to be escaped only once, but in the first sed it needs an extra escape (because of the weak double...
Showing results 1 to 2 of 2

 

Featured Tech Videos

All times are GMT -4. The time now is 07:27 PM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy