I want to execute 2 ex commands using a shell script. For example: on a file called test
Print lines containing .jsp
.
:/.jsp/ p
Add * to the beginning of those lines.
:s/^/\*/
How can I make a shell script that executes them both? I've tried a couple of things, but the second command is never executed. It only does the first command.