I'm trying to move a certain ViM command into a Linux Bash script. In ViM the command is
To delete any lines containing only some word and nothing else.
When I move it into a bash script it doesn't work anymore
vim -e -s /tmp/file.txt << EOF :g/^SOMEWORD$/d :update :quit EOF
$ doesn't seem to make a difference, is there another way to use the
$ in this type of scenario or am I missing something else?
vim -e -s /tmp/file.txt << EOF :g/^SOMEWORD\$/d :update :quit EOF