COMMAND TO DISPLAY SPECIFIC LINES IN A SCRIPT [closed]

You can use sed to do this:

sed -ne '1p;$p' script.sh