how to validate a mobile number in shell script
#!/bin/bash
echo "Enter a phone number as XXXXXXXX: "
read phoneNumber
pat="^[0-9]{8}$"
while [[ ! $phoneNumber =~ $pat ]]
do
echo "Please enter a phone number as XXXXXXXX: "
read phoneNumber
done
echo $phoneNumber
Also in Shell:
- command to install react cli
- poetry install
- powershell get ip address
- git fetch tags force
- réinstaller interface graphique debian
- powershell import module
- heroku and github on termi
- install postfix dovecot ubuntu 16.04
- install automapper asp.net core mvc
- sh increment variable
- laravel make migration
- git revert pr merge
- bash compare two strings
- how to validate a mobile number in shell script
- forecfully remove directory
- bash set environment variable
- how to install pod
- homebrew install mac
- python.h missing
- remove git tag
- git fetch remote branch
- how to install mongoose
- install glesv2 and egl library
- linux find from file content