I need to add text after the last line, but I'm getting this error.
How can I avoid this error keeping the same actions?
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.