Hi friends,
In my shell script, I want to open a file using vi editor. After opening the file in vi, I want to save and quit this file automatically.... all through shell script.
the code segment is:
------------------------------------------------------------
This sounds strange. vi is an interactive tool - how should the shellscript know that the actions done in vi are finished?
What is your final goal? Are you trying to modify a file? There are text processors like sed or awk that are designed for that.