Get the App
SLTechnology News&Howtos  ›  Servers  › 

Sed special character substitution

Shulou Source: shulou.com Published: 2022-06-03 03:43:23 09月30日 Update

Because the sentence sed is printed intact in shell, it turns out to be a strange phenomenon that sed does not take effect after shell is run, but it is found that it can be passed by copying and pasting commands when running shell.

If you use sed in shell, if you have a special character like $, you have to replace single quotation marks with double quotation marks.

Tags: Run quote special character weird intact command phenomenon result this sentence Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Tech Info Apple macOS MySQL