int_comparison.sh (356B)
1 #!/usr/bin/env bash 2 # File : int_comparison.sh 3 # Description: Integer comparison based on number of arguments given to the 4 # script 5 # Copyright 2022 Harvard University. All Rights Reserved. 6 7 if [ $# -gt 2 ]; then 8 echo "Number of arguments $# is larger than two" 9 else 10 echo "Number of arguments $# is less than or equal to two" 11 fi