001、
(base) [root@pc1 test02]# ls a.txt (base) [root@pc1 test02]# cat a.txt ## 测试文件 use File::Basename; use File::Spec; use List::Util 'none'; use "Carp" kk; (base) [root@pc1 test02]# sed 's/\'//g' a.txt ## 错误做法 > ^C (base) [root@pc1 test02]# sed $'s/'//g' a.txt ## 错误做法 > ^C (base) [root@pc1 test02]# sed $'s/\'//g' a.txt ## 正确做法 use File::Basename; use File::Spec; use List::Util none; use "Carp" kk;
。