Question: how do i write this in shell script, ubuntu linux For this exercise we will create a startup script. This script will start the VI
how do i write this in shell script, ubuntu linux
For this exercise we will create a startup script. This script will start the VI editor. You can use any kind of patterns, but its always recommended to use case statement, when youre testing on values of primitives. (ie. integers or characters).
You will call your script startapp and it will take one parameter.
The parameters should be start, stop and restart.
start: You must start VI as a background process so you can still have a shell
stop: You will need to use the kill command to kill the VI process
restart: First your script with kill the vi process, after that it will start a new instance of vi
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
