我需要在最后一行之后添加文本,但出现此错误。
如何避免此错误保持相同的操作?
sed -i -e '$a\ containers:' -e '$a\ - name: container' -e '$a\ image: httpd' -e '$a\ ports:' -e '$a\ - containerPort: 80' /path/to/file"
^-- SC2154: a is referenced but not assigned.