ip address regex validate cmd
#!/bin/sh
ip=1.2.3.4
if expr "$ip" : '[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*$' >/dev/null; then
echo "success"
else
echo "fail"
fi
#!/usr/bin/env bash
ip=1.2.3.4
if [[ $ip =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "success"
else
echo "fail"
fi
echo off
:start
cls
set /p localWireless=input wireless ip address ? &
echo %localWireless% | findstr /i /r [0-9].*.[.].*.[0-9].*.[.].*.[0-9]
if %errorlevel% equ 0 (
goto installLocalWireless
) else (
msg %username% 'ip address is not valid'
goto start
)
:installLocalWireless
cls
echo Hello Wordl
pause
goto start
Also in C++:
- where is fish shell installed ubuntu
- open XAMPP in ubuntu
- youtube-dl uninstall mac
- check if port is running in ubuntu
- vmware not working after ubuntu upgrade
- sudo apt-get install docker-ce docker-ce-cli containerd.io command not working
- git change commit id email
- how to copy the files of a folder to another folder linux
- How to Delete Local/Remote Git Branches
- git create worktree
- use local image with minikube
- download chrome on ubuntu 20.04 unsupported file
- como agreagar archivo a .gitignore y eliminarlo del repositorio
- terminal download manager command line
- how to uninstall apps without admin password
- download heroku ubuntu
- git asking for password every time
- how to install chocolatey on windows 10 using cmd
- atom install
- aws cli create ecr repository if not exists
- material ui core yarn
- gitignore all files and folders in only one folder
- how to make copy of branch in git
- download and install react native