sed: -e expression #1, char 7: unterminated `s' command 错误解决

学习sed,,跟着教程

pang@cdd:~/shelltest$ sed `s/192.168/hello/g` sed.txt
-bash: s/192.168/hello/g: No such file or directory
sed: -e expression #1, char 7: unterminated `s' command

出现这种错误,
后来发现是s/192.168/hello/g这里出现了问题,这里是单引号不是·(和~在一起的那个符号)

你可能感兴趣的:(Cplusplus)