Answers for "if argument exists bash"

2

if argument exists bash

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

if ["$1" ]
  then
    echo "Argument supplied is: "$1
fi
Posted by: Guest on May-28-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language