Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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
Comment

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
Comment

PREVIOUS NEXT
Code Example
Shell :: gk420t driver windows 
Shell :: caddy default tls folder 
Shell :: how to add program to command line linux 
Shell :: groupadd to folder linux fedora 
Shell :: write-only cloudtrail event filter aws cli 
Shell :: append filename at the beggining linux 
Shell :: batch malware 
Shell :: give names to ips on local machine ubuntu 
Shell :: pup command example 
Shell :: como agreagar archivo a .gitignore y eliminarlo del repositorio 
Shell :: grep third line after match 
Shell :: powerrshell adobject get all deleted 
Shell :: aprire una finestra di navigazione terminale ubutnu 
Shell :: Linux Tor enabled 
Shell :: git remove last merge commit 
Shell :: fslmaths multiplication masking 
Shell :: how to uninstall bitninja 
Shell :: nasa-ingenuity-helicopter github 
Shell :: run a pomdp file to get policy file 
Shell :: which display manager is active/running 
Shell :: how to install asterisk 16 on debian 10 
Shell :: pip install psycopg2 error 
Shell :: brew export path mac m1 
Shell :: apt install from file 
Shell :: gitignore new monified file ? 
Shell :: react-github-contribution-calendar 
Shell :: lstinputlisting excluse lines 
Shell :: Git Commands: Step By Step Guide (Part 1) 
Shell :: Disable all git advice 
Shell :: video to gif ffmpeg palette 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =