what is the difference between writing code in shell and
editor?

Answer Posted / guest

If we write code in shell it is called we are using the
shell as interractive mode.
It is inconvenient to write complex code(means entering
complex or compound commands to execute by seperating
with ";" semicolon)

For our convenient and also to frame a new functionality by
using different commands we use non interactive mode of
shell that is we type code in a editor and we execute that.

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of break command?

824


How do I stop script errors?

803


How do I edit a .sh file?

881


I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?

1907


What does it mean to debug a script?

816


What is shell scripting?

798


How to print the first array element?

818


How can I send a mail with a compressed file as an attachment?

800


What is the use of "$#" in shell scripting?

772


What is the significance of the shebang line in shell scripting?

804


What is a shell environment?

767


Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.

2272


How do you debug a script?

800


What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?

818


c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again

5963