I have a scenario where a shell script runs another shell script. The second shell script prompts user to type review comments and close the file.
In my case, I do not want to type anything but only save and quit (equivalent vim command :wq
) the file. I want to automate this through a shell script where I don't want manual intervention to save and quit the file. How can i achieve this?