I would like to write a script that would reread from hard disk, a file that I AM CURRENTLY EDITING IN VI.
The problem is: How do I get VI to easyly reread the copy of the file on the hard drive without closing the file and reopening it ?
1) I am writing a script named "myscript".
2) I want to insert an example of a command with the CORRECT SINTAX :)
The syntax of the if...then control structure is
3) Now in the VI editor session I am in I want to read off the hard disk the new file contents so I can just change the "test-command" and the "commands" veriable.
What I am looking for is a nice helping aid in case I get a job shell scripting and have problems with the syntax. People look at you funny if you paste in all the examples !!!