Dividing the script into sections


#1

Hi Everyone,

Apologies for the beginner question. I wonder if there is a way to divide the script into blocks? It is like doing the %% blocks for those familiar with MATLAB. Thanks!


#2

Which scripts?.. what program language?

For Matlab:
https://www.google.com/search?q=matlab+subroutines
https://www.mathworks.com/help/matlab/matlab_prog/local-functions.html


#3

Sorry for not being clear. I meant SHELL script.


#4

For which shell, though?


#5

Interesting finds when you do a web search for the words …
shell script functions

Example…
https://www.shellscript.sh/functions.html