The steps to create a shell script file are:
Create a file using a editor
Name script file with extension . sh
Start the script with #! /bin/sh
Write the desired code
Save the script file as ABC.sh
For executing the script type bash ABC.sh.