Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

if argument exists bash

if [ -z "$1" ]
  then
    echo "No argument supplied"
fi

if ["$1" ]
  then
    echo "Argument supplied is: "$1
fi
 
PREVIOUS NEXT
Tagged: #argument #exists #bash
ADD COMMENT
Topic
Name
2+5 =