Answers for "sed excape all special charators"

0

sed excape all special charators

echo "'"'[]`~!@#$%^&*()-_=+{}\|;:",<.>/?' | sed 's/[][`~!@#$%^&*()-_=+{}\|;:",<.>/?'"'"']/\\&/g'
Posted by: Guest on March-06-2022
0

sed excape all special charators

$ echo '`~!@#$%^&*()-_=+{}\|;:",<.>/?' | sed 's/[`~!@#$%^&*()-_=+{}\|;:",<.>/?]/\\&/g'
\`\~\!\@\#\$\%\^\&\*\(\)\-\_\=\+\{\}\\\|\;\:\"\,\<\.\>\/\?
Posted by: Guest on March-06-2022
0

sed excape all special charators

sed 's/[^a-zA-Z 0-9]/\\&/g'
Posted by: Guest on March-06-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language