Answers for "if exist cmd"

1

cmd check if folder exists or not

if exist yourfoldername\ (
  echo Yes 
) else (
  echo No
)
Posted by: Guest on August-26-2021
0

check if a command exists

# To find out if a given command exists:

if command -v given-command > /dev/null 2>&1; then
  echo given-command is available
else
  echo given-command is not available
fi
Posted by: Guest on November-22-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language