#!/bin/sh #================================= # This sample script contains only # a few commands # ================================ # Request username and record for later use echo Please enter your name: read MYNAME # Confirm that the name is correct before proceeding echo Is $MYNAME the correct name? read ANSWER if[ANSWER ="Y"] thenThe first line of the script names the command interpreter.
#!/bin/sh #================================= # This sample script contains only # a few commands # ================================ # Request username and record for later use echo Please enter your name: read MYNAMEThe next read command is executed, and the script proceeds with other commands, skipping all comment lines.