How to get list of commands used in a shell script?
<p>I have a shell script of more than 1000 lines, i would like to check if all the commands used in the script are installed in my Linux operating system. 
Is there any tool to get the list of Linux commands used in the shell script?
Or how can i write a small script which can do this for me?</p>

<p>The script runs successfully on the Ubuntu machine, it is invoked as a part of C++ application. we need to run the same on a device where a Linux with limited capability runs. I have identified manually,  few commands which the script runs and not present on Device OS. before we try installing these commands i would like to check all other commands and install all at once.</p>

<p>Thanks in advance</p>