What follows is what you need:
#!/bin/bash if [ $# -eq 0 ]; then echo -e "\nError: The project name is required. Aborting...\n\n" exit 1 elif [ $# -gt 2 ]; then echo -e "\nError: The program takes two arguments maximum. Aborting...\n\n" exit 1 fi
The TLDP bash guide is very good if you want to learn bash, see the TDLP bash guide .
source share