Answers for "how to check if there is 2 argument in bash"

1

bash command check 2 arguments

if [ $# -lt 2 ]; then
    # TODO: print usage
    exit 1
fi
Posted by: Guest on April-08-2021

Code answers related to "how to check if there is 2 argument in bash"

Browse Popular Code Answers by Language