RE: what is the difference between writing code in she...
In editor we can save the text. In shell we can't. For instance we given the file name sample.shHere we have to change the permissions and then we have to execute. Ok Suppose we created so many files and we have to change the permissions for each one.For this we can write a function in the shell and we can execute it by passing the name of the function in the shell itself. No need to go to editor.This is the main difference that what i have find.
RE: what is the difference between writing code in she...
when we write a command in shell we are directly submitting it to the shell it will directly submits it to the default shell where as in the script we can change the interpreter shell by using the Hash Bang line.