Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash "=~" example

$ [[ 45 =~ [0-9]+ ]] && echo "45 contains digits"
45 contains digits

$ [[ "hello" =~ [0-9]+ ]] && echo "hello doesnt contains digits"
$ [[ "hello" =~ [a-z]+ ]] && echo "hello contains alphabets"
hello contains alphabets
Comment

PREVIOUS NEXT
Code Example
Shell :: install zipalign kali linux 
Shell :: how disabled cors in chrome 
Shell :: prettier npm 
Shell :: manually shut down docker mac 
Shell :: teams ubuntu 
Shell :: nvm node 
Shell :: store env file in firebase functions 
Shell :: linux change uid 
Shell :: delete a folder then git push 
Shell :: install vlc on fedora 
Shell :: git rebase branch 
Shell :: bash script change directory run a command 
Shell :: unable to delete c2dd1984ad5b (must be forced) - image is being used by stopped container 
Shell :: folium 
Shell :: Run node red in widnows 
Shell :: bash for 
Shell :: get diff stash 
Shell :: copy file to another directory linux 
Shell :: git flow sourcetree command 
Shell :: how to install tar.xz files on ubuntu 
Shell :: github quick reference 
Shell :: Chaotic-AUR Team <team@chaotic.cx 
Shell :: renaming a file in linux 
Shell :: bitbucket rename remote tag 
Shell :: ubuntu add entry to /etc/apt/sources.list 
Shell :: powershell reload updated module 
Shell :: find and kill android device offline on Mac 
Shell :: how to find out what packages I installed from the AUR 
Shell :: format flash drive linux 
Shell :: run katalon docker image 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =