Answers for "how to check 2nd 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 2nd argument in bash"

Browse Popular Code Answers by Language