Horje
check value is number in cmd Code Example
check value is number in cmd
echo off &echo.&echo off
set /p pilih=silahkan masukan adb port ? &
echo off &echo.&echo off

SET /a param="%pilih%" + 0

if not %param% == 0 echo hello wordl
pause
check value is number in cmd
#!/bin/bash

var=a

if [ -n "$var" ] && [ "$var" -eq "$var" ] 2>/dev/null; then
  echo number
else
  echo not a number
fi




Shell

Related
"ssd_inception_v1_coco_2017_11_17" example in github Code Example "ssd_inception_v1_coco_2017_11_17" example in github Code Example
screen painting ubuntu Code Example screen painting ubuntu Code Example
chmod ax Code Example chmod ax Code Example
linux check memory occupied by a file and folder Code Example linux check memory occupied by a file and folder Code Example
install tidyverse ubuntu 20.04 Code Example install tidyverse ubuntu 20.04 Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
14