Get a list of function names in a shell script [duplicate]
You can get a list of functions in your script by using the grep command on your own script. In order for this approach to work, you will need to structure your functions a certain way so grep can find them. Here is a sample: $ cat my.sh #!/bin/sh function func1() # Short description { … Read more