how to validate a mobile number in shell script
Shell
#!/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:
- Title
- push code to github command line
- Category
- Shell
- Title
- how to install yum uitls
- Category
- Shell
- Title
- numpy uninstall anaconda
- Category
- Shell
- Title
- Shell query displays all citizens with an age greater than or equal to 21
- Category
- Shell
- Title
- install pip ubuntu
- Category
- Shell
- Title
- how to update pip in linux
- Category
- Shell
- Title
- node install ubuntu
- Category
- Shell
- Title
- how to use curl command in ubuntu
- Category
- Shell
- Title
- how to kill a process in linux
- Category
- Shell
- Title
- bash list not
- Category
- Shell
- Title
- Data path ".builders['app-shell']" should have required property 'class'.
- Category
- Shell
- Title
- get ip address linux
- Category
- Shell
- Title
- update pip
- Category
- Shell
- Title
- git reset
- Category
- Shell
- Title
- linux add user to group
- Category
- Shell
- Title
- fcm post example curl
- Category
- Shell
- Title
- react lorem ipsum
- Category
- Shell
- Title
- conda install paraview
- Category
- Shell
- Title
- passport deploy to server
- Category
- Shell
- Title
- linux add to path
- Category
- Shell
- Title
- timedatectl
- Category
- Shell
- Title
- bash ls without substring
- Category
- Shell
- Title
- randomly choose n rows from a file linux
- Category
- Shell
- Title
- iis restart cfrom command promt windows
- Category
- Shell
- Title
- find flutter version
- Category
- Shell
- Title
- how ot get android notifications i ubuntu
- Category
- Shell
- Title
- install seaborn
- Category
- Shell
- Title
- git ignore node_modules
- Category
- Shell
- Title
- how to add extension to all files terminal
- Category
- Shell
- Title
- import jar file
- Category
- Shell
- Title
- Got permission denied while trying to connect to the Docker daemon socket
- Category
- Shell
- Title
- linux replace string in all files
- Category
- Shell
- Title
- intall docker ubuntu command
- Category
- Shell
- Title
- install docker compose
- Category
- Shell
- Title
- linux mesuare request time http
- Category
- Shell
- Title
- vmware mukesh003
- Category
- Shell
- Title
- how to restart docker linux
- Category
- Shell
- Title
- setup mysql ubuntu
- Category
- Shell
- Title
- inicializar as credenciais no git
- Category
- Shell
- Title
- bash find file with text
- Category
- Shell
- Title
- bash rename file
- Category
- Shell
- Title
- count occurrences of word in file linux
- Category
- Shell
- Title
- uninstall cinnamon
- Category
- Shell
- Title
- git return from detached head
- Category
- Shell
- Title
- gunicorn launch django cmd
- Category
- Shell
- Title
- [mysqld] ubuntu 18
- Category
- Shell
- Title
- linux shell loop through all inputs except last
- Category
- Shell
- Title
- how to save environment variables ubuntu
- Category
- Shell
- Title
- git switch branch
- Category
- Shell
- Title
- linux inhalt einer textdatei anzeigen
- Category
- Shell
- Title
- vim compare 2 files
- Category
- Shell
- Title
- start mariadb on linux terminal
- Category
- Shell
- Title
- Documentazione relativa a Sottosistema di Windows per Linux
- Category
- Shell
- Title
- add all files in directory to git
- Category
- Shell
- Title
- what is git rebase
- Category
- Shell
- Title
- how to install axios in react
- Category
- Shell
- Title
- git init at wrong folder
- Category
- Shell
- Title
- pyglet linux
- Category
- Shell
- Title
- how to check upstream git
- Category
- Shell
- Title
- git checkout branch on different remote
- Category
- Shell
- Title
- wireless network disconnected ubuntu
- Category
- Shell
- Title
- convert excel to csv command line linux
- Category
- Shell
- Title
- how to create a branch in git
- Category
- Shell
- Title
- linux restrict process network access
- Category
- Shell
- Title
- obs
- Category
- Shell
- Title
- set git origin
- Category
- Shell
- Title
- split large file into smaller files
- Category
- Shell
- Title
- apache .htaccess Option ubuntu
- Category
- Shell
- Title
- Could not execute 'apt-key' to verify signature (is gnupg installed?)
- Category
- Shell
- Title
- pygame not installing in ubuntu 20.04
- Category
- Shell
- Title
- ubuntu sites-available location
- Category
- Shell
- Title
- serverless invoke sqs
- Category
- Shell
- Title
- which desktop environment is runnings
- Category
- Shell
- Title
- count occurrences of word in file linux ignoring case
- Category
- Shell
- Title
- install opencl library
- Category
- Shell
- Title
- docker exc into mongo shell
- Category
- Shell
- Title
- ldap query powershell
- Category
- Shell
- Title
- install phpmyadmin ubuntu 18.04
- Category
- Shell
- Title
- git config username
- Category
- Shell
- Title
- firewall-cmd create new zone
- Category
- Shell
- Title
- how to make a .sh file executable
- Category
- Shell
- Title
- linux check timezone
- Category
- Shell
- Title
- xcode clean derived data command line
- Category
- Shell
- Title
- ubuntu activate venv
- Category
- Shell
- Title
- brew minikube custom version install
- Category
- Shell
- Title
- create a docker file
- Category
- Shell
- Title
- Running modprobe bridge br_netfilter failed with message: ip: can't find device
- Category
- Shell
- Title
- FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
- Category
- Shell
- Title
- ubuntu command history
- Category
- Shell
- Title
- powershell get all computers in ou
- Category
- Shell
- Title
- install react react testing library
- Category
- Shell
- Title
- git config core.autocrlf true
- Category
- Shell
- Title
- list of files in git commit
- Category
- Shell
- Title
- git tag checkout
- Category
- Shell
- Title
- kernel headers were not found vmware kali linux
- Category
- Shell
- Title
- pod install ruby: bad interpreter: No such file or directory
- Category
- Shell
- Title
- golang compile with injected variable
- Category
- Shell
- Title
- install bootstrap angular
- Category
- Shell
- Title
- list config git
- Category
- Shell
- Title
- how to uninstall npm package
- Category
- Shell