34.9k views
1 vote
When might it be necessary or advisable to write a shell script instead of a shell function? give as many reasons as you can think of?

1 Answer

1 vote

A shell function will do nothing unless it is explicitly called by other code, typically in a shell script. A shell script is a running executable process, which can call other shell scripts and/or functions. Typical operations performed by shell scripts include file manipulation, program execution, and printing text.

User Megakorre
by
7.8k points